我的博客

博客园 首页 新随笔 联系 订阅 管理

2007年10月11日 #

摘要: 不要在创建控件以外的线程操作控件,Net 2.0已经把这个作为异常了。可以使用Control的Invoke方法,将操作放到UI线程上。 一个简单的例子 private void Form1_Load(object sender, System.EventArgs e) { System.Threading.Thread tNew = new System.Threading.T... 阅读全文
posted @ 2007-10-11 01:26 Jackey 阅读(867) 评论(0) 推荐(0) 编辑