How to prevent a non-response message in the window title bar?

I am using VS2010 and C # to create a desktop application. This application has one form with a huge task that takes a long time to complete. When this form is initialized, it works fine, except that the “Do not respond” line is displayed in the title bar , as shown in the figure:

enter image description here

After completing all the tasks, it displays the desired result. Why is this message shown and how to prevent it?

+6
source share
3 answers

BackgroundWorker, . Windows . , , .

MSDN MSDN BackgroundWorker

BackgroundWorker . , , , (UI) , . , , BackgroundWorker .

, BackgroundWorker , . BackgroundWorker . BackgroundWorker Windows Forms, , .

, DoWork. . , RunWorkerAsync. , ProgressChanged. , RunWorkerCompleted.

+5

, ().

+1

Many times I tried, but when I use BackgroundWorker, I can’t get the values ​​from the control, it shows that the control is null, since we can use BackgroundWorker in the script.

0
source

All Articles