System.Threading.Thread thread = new System.Threading.Thread(() =>
{

//各种业务


//定义一个委托
public delegate void ProcessDelegate(string a);
if (this.lbStatus.InvokeRequired)
{
ProcessDelegate df = new ProcessDelegate(AddStatus);
this.Invoke(df, new object []{ "调用Web Service过程产生错误:" + ls_ErrMsg });
}
});
thread.IsBackground = true;
thread.Start;

----以上自己修改,亲测可以使用

参考自 : http://www.jb51.net/article/56428.htm

 

相关文章:

  • 2021-06-16
  • 2021-08-22
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-12-17
猜你喜欢
  • 2021-10-25
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案