注册窗体关闭事件:
在Form1.Designer.cs 文件中添加:
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.F
注册窗体关闭事件:
在Form1.Designer.cs 文件中添加:
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.F