How to prevent a Not Responding message on a window's title bar?

前端 未结 2 663
囚心锁ツ
囚心锁ツ 2021-01-12 10:23

I use VS2010 and C# to build a desktop application. This application has one form with a huge task which takes a lot of time to complete. When this form is initialized it w

2条回答
  •  梦谈多话
    2021-01-12 10:59

    You need to run your huge task on a background thread so as not to lock up the UI (main) thread.

提交回复
热议问题