关闭NavigatorBar后能否再显示吗?
有两种方案:
1. 屏蔽Close按钮 http://www.csframework.com/archive/1/arc-1-20110320-1197.htm
2. 代码控制:
private void frmMain_KeyDown(object sender, KeyEventArgs e)
{
//必须设窗体的KeyPreview=True,捕获KeyDown事件!
//this.KeyPreview = true;
if (e.KeyCode == Keys.F12)
{
if (dockPanel1.Visibility != DockVisibility.Visible)
dockPanel1.Visibility = DockVisibility.Visible;
else
dockPanel1.Visibility = DockVisibility.Hidden;
}
}
// 来源:www.CSFramework.com, C/S结构框架学习网
扫一扫加作者微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网