[C#] C#跨线程访问控件 →→→→→进入此内容的聊天室

来自 , 2020-12-19, 写在 C#, 查看 147 次.
URL http://www.code666.cn/view/9dc603ea
  1. delegate void dSetText(string text);
  2. private void SetText(string text)
  3.  {                
  4.       if (InvokeRequired)      
  5.       {    
  6.           dSetText d = new dSetText(SetText);      
  7.           this.Invoke(d);      
  8.       }  
  9.       else
  10.       {      
  11.        this.textBox1.Text = text;
  12.       }
  13.  }
  14. //csharp/190

回复 "C#跨线程访问控件"

这儿你可以回复上面这条便签

captcha