从不是创建控件 的线程访问它
UI上的控件不是线程安全的,所以跨线程的操作UI控件需要通过Invoke的方式:
在Form Load事件中加入
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
是最简单的方式
UI上的控件不是线程安全的,所以跨线程的操作UI控件需要通过Invoke的方式:
在Form Load事件中加入
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
是最简单的方式