WinForm 控件委托

it2022-05-09  35

我们通常需要在多线程中更新控件的值,用此方法不必自己写委托。   this.txtDemo.Invoke(new MethodInvoker(delegate             {                 this.txtDemo.Text = "Text";            }));

转载于:https://www.cnblogs.com/liaoyi/archive/2012/07/23/2604671.html

相关资源:C#跨窗体(Winform)调用控件(委托回调)

最新回复(0)