Thread TheOpenPrint;
TheOpenPrint = new Thread(new ThreadStart(OpenPrin));
TheOpenPrint.IsBackground = true; //申明的地方
private void CloseThread()
{
System.Environment.Exit(0);//退出全部线程
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
进程关闭了 窗体也关了 但是线程还在跑 怎么办