Control.CheckForIllegalCrossThreadCalls = false; //加这句即可 Thread thread = new Thread(() => { ExecImport(); }); thread.Start();//启动线程 thread.IsBackground = true;//后台运行