如何在另一个mdi子窗体中调用mdi child [英] How to call mdi child inside another mdi child form

查看:86
本文介绍了如何在另一个mdi子窗体中调用mdi child的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

01-我有一份MDI家长表格

02-我打电话给frmPoMain来自使用菜单项目在上面提到的MDI家长来自

03-要求是打电话上面的另一个表格(01)主要Mdi表格通过按下按钮调用编辑在frmpomain(02)



如何做这个

谢谢你

01- I Have An MDI Parent Form
02-I call A frmPoMain From Using a menu Item In above mentioned MDI parent From
03- Requirement is to call an other form to above (01) Main Mdi Form By pressing a button call edit which is in frmpomain(02)

How to do This
Thank you

推荐答案

这不是MDI孩子的工作方式。表单可以是MDI子级,MDI父级,也可以是none或者它们。 MDI设计对于用户来说已经非常不方便了,但是你正试图做更糟糕的事情。



这是个想法:谁需要MDI?为什么要折磨自己并吓跑你的用户?

帮自己一个大忙:根本不要使用MDI。没有它,您可以更轻松地实现设计,质量更好。 MDI甚至被微软高度劝阻,事实上,微软将其从WPF中删除并且很难支持它。更重要的是,如果您使用MDI,您将吓跑所有用户。只是不要。请参阅:

http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [ ^ ],

如何在WPF中创建MDI父窗口? [ ^ ]。



我可以解释做什么。请看我过去的答案:

为什么WPF本身不支持MDI表单? [ ^ ],

如何在WPF中创建MDI父窗口? [ Solution 2 ],

在WPF中使用MDI窗口的问题 [ ^ ],

MDIContainer给出错误 [ ^ ],

如何设置最大化的子表单,最小化最后一个子表单 [ ^ ]。



-SA
This is not how MDI child works. A form can be either MDI child, MDI parent, or none or them. MDI design is already very inconvenient for the users, but you are trying to do something even worse.

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:
Why MDI form is not supported natively in WPF ?[^],
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子窗体中调用mdi child的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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