程序主窗口的 Closed 事件中添加代码: Process.GetCurrentProcess().Kill(); 转载于:https://www.cnblogs.com/dhqy/p/9621172.html