// 【文件】菜单中【退出】菜单项的处理方法
|
private void miExit_Click(object sender, System.EventArgs e) |
|
{ |
|
// 在退出程序之前,首先关闭已打开的子窗体 |
|
Form[] children = this.MdiChildren; // 获取当前打开的子窗体 |
|
for( int i=0;i<children.Length;i++) |
|
children[i].Close(); // 关闭子窗体 |
|
this.Close(); // 关闭主窗体并退出示例程序 |
|
} |
浙公网安备 33010602011771号