C# 实现关闭按钮隐藏窗体而不退出
private void OpenNewMxdFrm_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; this.Hide(); //this.MinimizeBox = true;//最小化 }
- 上一篇 »关闭C#主窗体弹出是否关闭对话框
- 下一篇 »C# winform 主界面打开并关闭登录界面
private void OpenNewMxdFrm_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; this.Hide(); //this.MinimizeBox = true;//最小化 }