Help needed for 'cross-thread operation error' in C#

后端 未结 6 2051
野的像风
野的像风 2021-01-16 03:34

In the following code MessageReceived is on a different thread to label1 and when trying to access it I will get this error:

6条回答
  •  自闭症患者
    2021-01-16 04:23

    Delegate updating the label to the thread that created the label instead of trying to update it directly.

提交回复
热议问题