2016年9月5日

摘要: Control 的Invoke和BeginInvoke的委托方法是在主线程,即UI线程上执行的。也就是说如果你的委托方法用来取花费时间长的数据,然后更新界面什么 的,千万别在UI线程上调用Control.Invoke和Control.BeginInvoke,因为这些是依然阻塞UI线程的,造成界面的假 阅读全文
posted @ 2016-09-05 16:50 larry_叶良辰 阅读(320) 评论(0) 推荐(0)
摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); var task = Task.Factory.StartNew(() => { for (int i ... 阅读全文
posted @ 2016-09-05 11:50 larry_叶良辰 阅读(1153) 评论(0) 推荐(1)

导航