窗体的关闭用:this.Close(); 程序的退出用:Application.Exit(); 转载于:https://www.cnblogs.com/friendan/archive/2012/03/25/2838116.html