如何在MDI父表单中显示面板,如果添加面板则在子表单上方显示子表单,这意味着它会将子表单隐藏起来任何帮助 [英] How to display panel in MDI parent form if add panel it display the above the child form that means it hides child form any bosy help me

查看:64
本文介绍了如何在MDI父表单中显示面板,如果添加面板则在子表单上方显示子表单,这意味着它会将子表单隐藏起来任何帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MDI父窗体中显示面板,如果添加面板则在子窗体上方显示,这意味着它隐藏了子窗体,任何人都可以帮助我

How to display panel in MDI parent form if add panel it display the above the child form that means it hides child form anybody help me

推荐答案

通常,MDI除了一个窗口(以原始Windows API而言)(称为"MDI客户端")用作所有MDI子级的客户区之外,父级不会显示任何内容.这是什么:
http://msdn.microsoft.com/en-us/library/system. windows.forms.mdiclient.aspx [ ^ ].

要显示其中的任何其他内容都非常困难,当然,除了用作MDI子窗体的形式以外,它不设计为保留任何其他控件.

也就是说, MDI用户界面还不够好.这是一个主意:谁曾经需要MDI?为什么要折磨自己并吓users用户?
帮自己一个忙:完全不要使用MDI.没有设计,您可以更轻松地实现设计,并且质量更高.即使Microsoft也不鼓励使用MDI,实际上,Microsoft已将其从WPF中删除,并且几乎不支持它.更重要的是,如果您使用MDI,则会吓跑所有用户.只是不要.请参阅:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [如何在WPF中创建MDI父窗口? [ ^ ].

我可以解释该怎么做.请查看我过去的答案:
如何在WPF中创建MDI父窗口? [解决方案2 ],
在WPF中使用MDI窗口的问题 [ ^ ],
MDIContainer提供错误 [如何最大程度地设置子表单,最小化最后一个子表单 [ ^ ].

—SA
Normally, MDI parents are not designed to show anything except one window (in terms of raw Windows API) called "MDI client" used as a client area for all MDI Children, and nothing else. Here is what it is:
http://msdn.microsoft.com/en-us/library/system.windows.forms.mdiclient.aspx[^].

It''s pretty difficult to show anything else in it, and of course, it is not designed to hold any controls other than forms acting as MDI children.

That said, MDI UI is just not good enough. Here is the idea: who needs MDI, ever? Why torturing yourself and scaring off your users?
Do yourself a great favor: do not use MDI at all. You can do much easier to implement design without it, with much better quality. MDI is highly discouraged even by Microsoft, in fact, Microsoft dropped it out of WPF and will hardly support it. More importantly, you will scare off all your users if you use MDI. Just don''t. Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
How to Create MDI Parent Window in WPF?[^].

I can explain what to do instead. Please see my past answers:
How to Create MDI Parent Window in WPF? [Solution 2],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^],
How to set child forms maximized, last childform minimized[^].

—SA


这篇关于如何在MDI父表单中显示面板,如果添加面板则在子表单上方显示子表单,这意味着它会将子表单隐藏起来任何帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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