NetBlog主题

C#,Winform确认窗口关闭
WinForm技巧

C#,Winform确认窗口关闭

2683 0

private void MainFrm_FormClosing(object sender, FormClosingEventArgs e){if (MessageBox.Show("您确认退出吗?", "www.luofenming.com", MessageBoxButtons.YesNoCancel) == System.Windows.Forms.DialogResult.Yes){Dispose();Application.Exit();}e…