使用 this.close(); //方法退关闭当前窗口。 使用 Application.Exit(); //方法退出整个应用程序。 使用 Application.ExitThread(); //释放所有线程