Difference between BackgroundWorker and Thread?

前端 未结 7 1639
南旧
南旧 2020-12-07 00:58

What is the difference between BackgroundWorker and Thread? In my application I am using a messaging system that communicates with the database reg

相关标签:
7条回答
  • 2020-12-07 01:48

    I think there is a big difference, that is When you want to use any UI component in methods called by BackgroundWorker, it doesn't work at all. I mean BackgroundWorker is a background process really and you won't be able to use interface actions. For example if you create a new label in method's going to call by BackgroundWorker, you catch an error definitely.

    0 讨论(0)
提交回复
热议问题