BackgroundWorker and Threads

后端 未结 6 2256
渐次进展
渐次进展 2021-02-15 11:19

What are the pros and cons in using the either for achieving a given task.

The million dollar question is which one to use and when?

Many Thanks.

6条回答
  •  遥遥无期
    2021-02-15 11:43

    The BackgroundWorker class is an easy way to add a thread to a Form to perform some heavy operation without blocking the UI. You could do the same with a thread but with slightly more coding.

提交回复
热议问题