正在加载图片...
窗体的方法 ■默认情况下,主窗体关闭时应用程序就会退出 Application.Exit () Ext方法不会立即关闭应用程序,而是关闭所有消息泵 一般调用主窗体的close方法来关闭应用程序 一般可在Appl ication.Exit事件处理中清除程序占用的资源 Form1() [Application.applicationExit+=new EventHandler(app_appExit);} Private void app_appExit(object sender,EventArgs e) connection.close(); 2020 窗体的方法 ▪ 默认情况下,主窗体关闭时应用程序就会退出 ▪ Exit方法不会立即关闭应用程序,而是关闭所有消息泵 ▪ 一般调用主窗体的close方法来关闭应用程序 ▪ 一般可在Application.Exit事件处理中清除程序占用的资源 Application.Exit(); Form1() {Application.applicationExit += new EventHandler(app_appExit);} Private void app_appExit(object sender, EventArgs e) { connection.close(); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有