如何设置子窗体最大化,最后的子窗体最小化 [英] How to set child forms maximized, last childform minimized

查看:127
本文介绍了如何设置子窗体最大化,最后的子窗体最小化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在制作Mdiforms,我带了menustrip一个menustrip项目(父母形式),因为我带了3个孩子表格。当我打开子表单时,这些表单适合父表单(子表单最大化窗口)。当我打开子窗体并逐个关闭这些子窗体时没有问题,所有窗体都是最大化窗口大小。



问题:当我打开no.of子窗体时,最后一个子窗体最小化剩余的

子窗体(在打开最后一个子窗体之前)进入正常窗口大小(不是在
最大窗口大小)。



Que:如何最大化子窗口,不仅是子窗体关闭,甚至子窗体最小化(所有子窗体最大化甚至关闭或最小化)。

Hi,

I am working on Mdiforms, I took menustrip with one menustrip item(parent form), in that i took 3 child forms. when I open child forms those forms fit into parent form(child form maximize window). when i open childforms and close those child forms one by one there is no problem, all forms are maximized window size.

problem: when i open no.of childforms, the last childform is minimized the remaining
childforms(before open last childforms) are goes to normal window size(not in
maximum window size).

Que: how to maximize Child windows, not only childforms closing, even childforms minimized also(all child forms are maximized only even closed or minimized).

推荐答案

看,听听一个很好的友好建议:停止折磨自己,用MDI无意义追逐我们的用户。几乎每个人都不鼓励它,微软努力将这个问题逐步解决。最后,MDI没有包含在WPF中,即使它仍然存在于 System.Windows.Forms 中,大概是为了与遗留代码的兼容性,但是即使是创建了这个概念的微软也非常气馁。



有很多强大的概念;最简单的是基于 TabControl 的选项卡式UI。



请参阅:

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

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

MDIContainer提供错误 [ ^ ],

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


-SA
Look, listen to a good friendly advice: stop torturing yourself and chasing our your users with that MDI nonsense. Nearly everyone discourages it, and Microsoft worked hard to phase this thing out. Finally, MDI was not included in WPF even though it remains in System.Windows.Forms, presumably for compatibility with legacy code, but highly discouraged even by Microsoft where this concept was created.

There are many robust conceptions; the simplest one is the tabbed UI based on TabControl.

Please see:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^],
How to Create MDI Parent Window in WPF?[^].

Good luck,
—SA


这篇关于如何设置子窗体最大化,最后的子窗体最小化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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