关闭NavigatorBar后能否再显示吗?
有两种方案:
1. 屏蔽Close按钮
http://www.csframework.com/archive/1/arc-1-20110320-1197.htm2. 代码控制:
private void frmMain_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F12)
{
if (dockPanel1.Visibility != DockVisibility.Visible)
dockPanel1.Visibility = DockVisibility.Visible;
else
dockPanel1.Visibility = DockVisibility.Hidden;
}
}
扫一扫加作者微信