Form的Closing事件在哪里?我只找到了Load事件。
private void Form1_Load(object sender, System.EventArgs e)
{
}
好像Load事件是这样定义的:
this.Load += new System.EventHandler(this.Form1_Load);
那Closing事件怎么定义啊?
private void Form1_Load(object sender, System.EventArgs e)
{
}
好像Load事件是这样定义的:
this.Load += new System.EventHandler(this.Form1_Load);
那Closing事件怎么定义啊?
{
//添加代码
}
Form1_Closing()
{
//在这儿加关闭时要处理的代码
}