全身家当请问一个异步执行的问题 本帖最后由 tiandiyuzhou1 于 2014-02-10 11:33:16 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private delegate void DeleUpdateText ( string text ); private void UpdateText ( string text ){ if(this.InvokeRequired) { this.Invoke( new DeleUpdateText( UpdateText ), new object[]{text} ); } else { sc_Image_Info.Text = text; }}sc_Image_Info.Text = info;改成UpdateText(info); *****************************************************************************签名档: http://feiyun0112.cnblogs.com/ 谢谢斑竹,我也是定义了个MethodInvoker委托 MethodInvoker ShowDelegate = delegate { sc_Image_Info.Text = ftp_info; }; if (sc_Image_Info.InvokeRequired) sc_Image_Info.Invoke(ShowDelegate); else ShowDelegate(); 利用word模版标签,导出word操作中遇到的问题,希望高手解答! c#的方法重写和的java方法重写有什么区别 1'System.Data.OracleClient.OracleConnection C# 操作sqlite数据库 UInt32数据的表示 timer问题,第一次使用能否给一段实例代码,感谢~ 不知道有没有这样一个容器 c#实现链表有什么类?(不过我的要求还不一定非要用链表,详见内) DBNull 和null有什么区别(在线等) 高分!Design Pattern电子版下载. 在机械行业里搞信息化有没有前途? 新人刚接触c#,问一个关于用户登陆的问题。
private void UpdateText ( string text )
{
if(this.InvokeRequired)
{
this.Invoke( new DeleUpdateText( UpdateText ), new object[]{text} );
}
else
{
sc_Image_Info.Text = text;
}
}sc_Image_Info.Text = info;
改成
UpdateText(info);
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
MethodInvoker ShowDelegate = delegate { sc_Image_Info.Text = ftp_info; };
if (sc_Image_Info.InvokeRequired)
sc_Image_Info.Invoke(ShowDelegate);
else
ShowDelegate();