首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

为什么ThreadStart里面的方法不执行解决办法

2012-04-08 
为什么ThreadStart里面的方法不执行C# codeprivate Thread th nullprivate Thread thf nullprivate

为什么ThreadStart里面的方法不执行

C# code
private Thread th = null;private Thread thf = null;private void button2_MouseDown(object sender,MouseEventArgs e){ if(checkBox1.Checked) {    thf = new Thread(new ThreadStart(file_transfer));  //file_transfer不执行 } else    m_PCNet.Set(3523,88);  th = new Thread(new ThreadStart(step_for)); //step_for不执行  th.Start();}


[解决办法]
th怎么没有start呢,试试看吧。

访问我的博客 程序员日记 http://www.ideaext.com

热点排行