Prevent a WinForms PictureBox animated GIF from pausing during processing?

后端 未结 2 1764
-上瘾入骨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: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.

提交回复
热议问题