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

2011年5月3日

摘要: 转载:http://hi.baidu.com/tokc/blog/item/14e2366c6c321cf743169487.htmlusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Threading; //添加系统类库namespace testThread{ public partial class 阅读全文

posted @ 2011-05-03 11:24 星尘的天空 阅读(436) 评论(0) 推荐(0) 编辑

摘要: 转载:http://blog.csdn.net/fhbcn/archive/2011/01/28/6167504.aspx单线程的winfom程序中,设置一个控件的值是很easy的事情,直接this.TextBox1.value="HelloWorld!";就搞定了,但是如果在一个新线程中这么做,比如:privatevoidbtnSet_Click(objectsender,EventArgse){Threadt=newThread(newParameterizedThreadStart(SetTextBoxValue));//当然也可以用匿名委托写成Threadt=new 阅读全文

posted @ 2011-05-03 11:22 星尘的天空 阅读(3032) 评论(0) 推荐(0) 编辑