mdi子窗口关闭时触发父窗口的什么事件
2014-12-12
展开全部
在formclosing事件里进行判断。
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if(e.CloseReason = CloseReason.MdiFormClosing)
//做该做的事
else if(e.CloseReason = CloseReason.UserClosing )
//弹出消息
else
//做该做的事
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if(e.CloseReason = CloseReason.MdiFormClosing)
//做该做的事
else if(e.CloseReason = CloseReason.UserClosing )
//弹出消息
else
//做该做的事
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询