最佳答案:实现单击关闭按钮退出程序代码如下:在窗体的closing事件中voidfrm_closing(objectsender,FormClosingEventArgse){if(MessageBox.Sho