控件只能由创建它的线程来访问。其他线程想访问必须调用该控件的Invoke方法。Invoke有两个参数,一个是委托方法,一个是参数值。下面代码就是举例为ListBox添加数据。using System; using System.ComponentModel; using System.Windows.Forms; using System.Threading; namespace TestAut

- 阅读全文 -