C# 多线程
Thread thread = new Thread(ThreadStartUpdate);
thread.IsBackground = true; //设为后台运行
thread.Start(); //开始线程
private void ThreadStartUpdate()
{
string errMsg = "";
PrintinterFace.StartUpdata(ref errMsg);
if (errMsg != "")
{
MessageBox.Show("上报数据失败!" + errMsg, "提示");
this.Enabled = true;
return;
}
}