参考地址:http://www.cnblogs.com/jason-liu-blogs/archive/2012/09/08/2677008.html
添加:
public Form()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
就可以了
参考地址:http://www.cnblogs.com/jason-liu-blogs/archive/2012/09/08/2677008.html
添加:
public Form()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
就可以了