“Cross-thread operation not valid” exception on inner controls

前端 未结 7 1477
南方客
南方客 2020-12-19 05:36

I\'ve been struggling with this for quite a while: I have a function designed to add control to a panel with cross-thread handling, the problem is that though the panel and

7条回答
  •  感情败类
    2020-12-19 06:11

    Lots of interesting answers here, but one key item for any multithreading in a Winform app is using the BackgroundWorker to initiate threads, and communicate back to the main Winform thread.

提交回复
热议问题