会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Archosaur
百二秦关终属楚,三千越甲可吞吴。
CnBlogs
Home
New Post
Contact
Admin
Subscription
2013年4月10日
线程间操作无效: 从不是创建控件"txtContent"的线程访问它.
就不写那么复杂了,也不说为什么了。 private void button9_Click(object sender, EventArgs e) { new Thread(Check).Start(); } public void Check() { lock(this) Invoke(new MethodInvoker(delegate() { txtContent.Text = "线程起作用了!"; ...
Read More
posted @ 2013-04-10 10:50 Archosaur
Views(2257)
Comments(1)
Diggs(0)
Edit
公告