软件编程
位置:首页>> 软件编程>> C#编程>> C#在子线程中更新窗口部件的写法

C#在子线程中更新窗口部件的写法

作者:junjie  发布时间:2022-04-01 09:57:50 

标签:C#,子线程,更新,窗口部件

 if (textBox1.InvokeRequired)
     {
       textBox1.Invoke(new MethodInvoker(delegate
       {
         textBox1.AppendText(sb.ToString());
       }));
     }
0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com