摘要: Winform的多线程问题 http://blog.csdn.net/maths_bai/article/details/6000744 阅读全文
posted @ 2012-11-19 19:00 沐雪架构师 阅读(265) 评论(0) 推荐(0) 编辑
摘要: new Thread(() => { //多线程处理的任务 //调用ui进程 //Invoke(new Action(() => { BeginInvoke(new Action(() => { //改变UI控件状态 })); }).Start();比如: new Thread(() => ... 阅读全文
posted @ 2012-11-19 17:48 沐雪架构师 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 1 引用类库:using System.Diagnostics;2 执行方法: Stopwatch sw = Stopwatch.StartNew(); //初始化,并且开始计时 Invoke(new Action(() => { textBox1.Text = s; })); MessageBox.Show(sw.ElapsedMilliseconds.ToSt... 阅读全文
posted @ 2012-11-19 15:36 沐雪架构师 阅读(196) 评论(0) 推荐(0) 编辑