System.Environment.Exit(System.Environment.ExitCode); this.Dispose(); this.Close(); 转载于:https://www.cnblogs.com/tmdsleep/p/5558260.html