C#退出程序,退出任务管理器
//窗体关闭之前 this.FormClosing += (s, r) => { System.Environment.Exit(0); }; //窗体关闭 this.Closed += (s, r) => { this.Dispose(); this.Close(); };
"唯有高屋建瓴,方可水到渠成"
//窗体关闭之前 this.FormClosing += (s, r) => { System.Environment.Exit(0); }; //窗体关闭 this.Closed += (s, r) => { this.Dispose(); this.Close(); };