WinForm 控件委托

我们通常需要在多线程中更新控件的值,用此方法不必自己写委托。
   this
.txtDemo.Invoke(new MethodInvoker(delegate             {                 this.txtDemo.Text = "Text";
            }));
posted @ 2012-07-23 11:25  liaoyi  阅读(405)  评论(0编辑  收藏  举报