方法1
Invoke((MethodInvoker)(()=>{XXX.Text = message;}));
方法2 取消跨线程检查
Control.CheckForIllegalCrossThreadCalls = false;
方法1
Invoke((MethodInvoker)(()=>{XXX.Text = message;}));
方法2 取消跨线程检查
Control.CheckForIllegalCrossThreadCalls = false;
转载于:https://www.cnblogs.com/code1992/p/9804089.html