当前位置:主页 > 软件编程 > .NET代码 >

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

时间:2021-05-20 09:29:05 | 栏目:.NET代码 | 点击:

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

您可能感兴趣的文章:

相关文章