Prevent a WinForms PictureBox animated GIF from pausing during processing?

后端 未结 2 1765
-上瘾入骨i
-上瘾入骨i 2021-01-23 16:52

I have a form with 2 controls on it. Control 1 has several search criteria and the user can click a button to start the search. Control 2 has a GridView that will display the se

相关标签:
2条回答
  • 2021-01-23 17:05

    2 words: BackgroundWorker class. http://msdn.microsoft.com/en-us/library/waw3xexc.aspx

    0 讨论(0)
  • 2021-01-23 17:28

    You long running code runs in the GUI-Thread and blocks the internal message loop, so any GUI is stopping. Try to run your long running code in a separate worker thread.

    0 讨论(0)
提交回复
热议问题