BackgroundWorker still needs to call Invoke?

后端 未结 3 389
面向向阳花
面向向阳花 2021-01-15 08:00

In the last question Display progress bar while doing some work in C#?, people has recommend use of BackgroundWorker. I thought in BackgroundWorker

3条回答
  •  抹茶落季
    2021-01-15 08:30

    Keep in mind that if you call RunWorkerAsync() from non UI thread you will need to call Invoke from the ProgressChanged and RunWorkerCompleted event handlers.

提交回复
热议问题