且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将控件从子窗体发送回匹配的MDI父工具条项

更新时间:2023-12-06 08:57:04

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

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

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

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



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

如何在WPF中创建MDI父窗口? [解决方案2 ],

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

麦当劳给出错误 [ ^ ],

如何设置子窗体最大化,最后一个子窗体最小化 [ ^ ]。



-SA

I am very new to vb.net. I have created MDIParent form and create a child form along with. I have toolstrip buttons in MDIParent form. And I send the values from MDI toolstrip to active child form.

MDI Toolstrip Items : Control1, control2, control3...

If control1 is selected, other control buttons will be disabled and control1 value will be sent to active child form.

If control2 is selected, other control buttons will be disabled and control2 value will be sent to active child form.

If control3 is selected, other control buttons will be disabled and control3 value will be sent to active child form.

Now I need to find out the solution for the corresponding control buttons in MDIform from active child form control which is added earlier.

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