if (this.InvokeRequired)//1.代理
{
this.Invoke(new MethodInvoker(delegate
{
//需要对控件作出的操作
}));
}
else//2.正常
{
//需要对控件作出的操作
}
【C#】跨线程处理控件
猜你喜欢
转载自blog.csdn.net/u010398722/article/details/80536321
今日推荐
周排行