在线程中使用控件怎么处理 要是在线程中不使用控件的话,很不方便,但是我又不知道怎么处理。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.google.com.hk/#q=control.invoke+control.begininvoke&hl=zh-CN&newwindow=1&safe=strict&prmd=ivns&source=lnt&tbs=lr:lang_1zh-CN%7Clang_1zh-TW&lr=lang_zh-CN%7Clang_zh-TW&sa=X&ei=4YEmToWCB-L7mAXujt3zCQ&ved=0CAcQpwUoAQ&fp=220db1cf55d4437c&biw=1308&bih=684 只能在线程中这么用 this.Invoke() or BeginInvoke() //线程内的语句 string result = "adfafdsaefsadfeafeafeafeafeafe"; Invoke(new UpdateDisplayDelegate(UpdateDisplay), new object[] { result });//调用委托方法//线程外的代码public delegate void UpdateDisplayDelegate(string text);//委托public void UpdateDisplay(string text){ this.richTextBox1.Text += text + "\n";} 数字格式化错误 谁能赐教一下 字符串排列组合 高效的可行的方法呢。 连续按键,键盘响应事件问题 有关FCKeditor的一个问题 RawSocket中IPAddress的问题 c#线程锁 datagridview Update时的问题 C#中如何获得当前时间? Windows应用窗体启动时可否传参数?比如application1.exe parm1 SendKeys.SendWait(""); 需要发送 ctrl+alt+a 在线等! C#如何将数据提到数据库里 C# 怎么将table控件中的数据导出到excel
this.Invoke() or BeginInvoke()
//线程内的语句
string result = "adfafdsaefsadfeafeafeafeafeafe";
Invoke(new UpdateDisplayDelegate(UpdateDisplay), new object[] { result });//调用委托方法//线程外的代码
public delegate void UpdateDisplayDelegate(string text);//委托public void UpdateDisplay(string text)
{
this.richTextBox1.Text += text + "\n";
}