摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SVS.ThreadHelper { public static class ThreadSafe { public static void InvokeExt(this T t, Action method... 阅读全文
posted @ 2013-11-04 21:13 zhangc3 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.cnblogs.com/c2303191/articles/826571.htmlControl.Invoke 方法 (Delegate) :在拥有此控件的基础窗口句柄的线程上执行指定的委托。Control.BeginInvoke 方法 (Delegate) :在创建控件的基础句柄所在线程上异步执行指定委托。(一)Control的Invoke和BeginInvoke 我们要基于以下认识:(1)Control的Invoke和BeginInvoke与Delegate的Invoke和BeginInvoke是不同的。 (2)Control的Invoke和BeginInvoke 阅读全文
posted @ 2013-09-27 22:13 zhangc3 阅读(317) 评论(0) 推荐(0) 编辑