BackgroundWorker multithread access to form

后端 未结 5 1592
刺人心
刺人心 2020-12-29 16:29

I am using 5 BackgroundWorker objects running at the same time for a certain purpose, and all of them have to change the same label. How do I do that?

How do I modif

5条回答
  •  清酒与你
    2020-12-29 17:07

    You could use the ReportProgress method in your BackgroundWorker where you want the label to change and write the actual code in ProgressChanged event handler.

提交回复
热议问题