System.Threading.Thread thread = new System.Threading.Thread(() =>
{ui
//各類業務this
//定義一個委託
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;.net
----以上本身修改,親測可使用htm
參考自 : http://www.jb51.net/article/56428.htmstring