Form Not Responding when any other operation performed in C#

前端 未结 5 1083
心在旅途
心在旅途 2020-12-09 12:52

I have a form (Developed in C# using VS2010) with a Progress Bar. It\'s kind of stopwatch form where I fill the progress bar in say 10secs.... As Time elapses, Progress bar

5条回答
  •  醉酒成梦
    2020-12-09 13:24

    You are blocking the Main UI thread. You can use a background worker to do this. You can find more details in MSDN

提交回复
热议问题