摘要: 当创建的线程操作界面上的控件的时候,会抛出入校异常 Cross-thread operation not valid: Control 'tbNumb' accessed from a thread other than the thread it was created on.虽然可以通过这样来解决:TextBox.CheckForIllegalCrossThreadCalls = false;但是不推荐这样做,微软推荐的做法如下://定义一个委托用于将值设置到文本框中 delegate void SetTextToControl_del(int n); ... 阅读全文
posted @ 2013-06-22 21:49 程序有Bug 阅读(272) 评论(0) 推荐(0) 编辑