C#.Net面板控件和MDI子窗体-问题 [英] C#.Net Panel Control and MDI Child forms - issue

查看:237
本文介绍了C#.Net面板控件和MDI子窗体-问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被面板控制卡在MDIform中.

Hi i am stuck in MDIform with panel control.

我有一个面板控件已停靠(填充)到父MDI表单.当我尝试使用菜单单击事件打开新的子窗体时,该子窗体未显示在MDI容器中.

I have one panel control Docked (fill) to parent MDI form. When i try opening new child form with menu click event the child form doesn't show up in MDI container.

调试几次后,我将面板控件的visible属性设置为false,现在显示子窗体.

After debugging few times, i set the visible property of panel control to false, the child form shows up now.

是什么原因造成的?我有什么办法可以将面板控件保留为停靠(填充)在MDI容器表单中,并在该面板顶部显示子表单?

what is causing this? is there any way that i can leave panel control as docked (fill) inside MDI container form and show the child form on top of that panel?

推荐答案

MDI子窗口始终显示为MDI客户区的子窗口. MDI父级中的深灰色窗口.您无法使用停靠的面板来掩盖它,子窗口将在面板的后面中显示.显然不可见.您必须为客户区域留出空间,这是一项艰巨的要求.

MDI child windows are always shown as a child of the MDI client area. The dark gray window in an MDI parent. You cannot cover this up with a docked panel, the child windows will show behind the panel. Obviously not visible. You must leave room for the client area, a hard requirement.

这篇关于C#.Net面板控件和MDI子窗体-问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆