What is the best way to update form controls from a worker thread?

前端 未结 4 1512
醉酒成梦
醉酒成梦 2020-12-18 04:47

I\'ve done some research and I can\'t really find a preferred way to do updating of form controls from a worker thread in C#. I know about the BackgroundWorker component, b

4条回答
  •  爱一瞬间的悲伤
    2020-12-18 04:57

    There's a discussion related to this here and one here.

    Essentially, you use Invoke to accomplish it.

    Best of luck!

提交回复
热议问题