C# Threading using invoke, freezing the form

前端 未结 6 1492
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 23:02

I\'m trying to use threads and prevent the program from freezing while the thread is busy. It should show the progress (writing of 0\'s / 1\'s) and not just show the result

6条回答
  •  滥情空心
    2020-12-31 23:19

    You're defeating the purpose of using threads.

    All your thread does is tell the UI thread to execute some code using BeginInvoke().

    All of the actual work happens on the UI thread.

提交回复
热议问题