Control.CheckForIllegalCrossThreadCalls = false; //加这句即可
Thread thread = new Thread(() =>
{
ExecImport();
});
thread.Start();//启动线程
thread.IsBackground = true;//后台运行
时间: 2024-12-11 09:53:52