
Environment.Exit() 方法
Environment.Exit() 方法终止进程并向操作系统返回退出代码 -
Environment.Exit(exitCode);
使用 exitCode 作为 0(零)来显示该过程已成功完成。
使用 exitCode 作为非零数字来显示错误,例如 -
bootstrap-carousel-touch-slider是一款基于Bootstrap支持移动端的响应式轮播图效果。该轮播图特效可以使用手指进行滑动切换。并且它和animate.css结合,可以制作出各种炫酷的文字动画效果。 使用方法 在页面中引入bootstrap相关文件,font-awesome.css字体图标文件,animate.min.css动画文件,以及jquery.touchS
Environment.Exit(1) - 返回值 1 表示您想要的文件不存在
Environment.Exit(2) - 返回值 2 表示文件格式不正确。
System.Windows.Forms .Application.ExitThread( )
要关闭 Windows 窗体中的子应用程序或当前线程,请使用 System.Windows.Forms.Application.ExitThread( )。
private void buttonClose_Click(object sender, EventArgs eventArgs) {
System.Windows.Forms.Application.ExitThread( );
}









