当子表单处于最大化状态时,不会显示MDI父滚动条。 [英] MDI Parent scroll bar does not appear when the child form is in its maximized state.

查看:92
本文介绍了当子表单处于最大化状态时,不会显示MDI父滚动条。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



任何人都可以告诉我如何在加载期间子窗体处于最大化状态时在MDI父级中启用水平或垂直滚动​​条。当子窗体处于正常状态时,将启用水平/垂直滚动条,但是当我最大化它时,滚动条消失,并且由于滚动条不可见,因此无法访问子窗体底部的几个控件。



提前致谢,



问候,

Jagadisha.N

Hi all,

Can anybody tell me how to enable Horizontal or vertical scroll bars in MDI parent, when the child form is in its maximized state during load. Horizontal/Vertical scroll bar will be enabled when the child form is in its normal state, but when i maximize it the scroll bar disappears & few controls that are @ the bottom of the child form will not be accessible as scroll bar is not visible.

Thanks in advance,

Regards,
Jagadisha.N

推荐答案

很明显,如果其中一个MDI子节点最大化,则不应显示MDI父节点上的滚动条,因为此处无需滚动案件。如果你想的话,你会理解它。



我强烈建议永远不要在MDI中开发任何用户界面。



-SA
It is quite apparent that if one of the MDI children is maximized, the scroll bars on the MDI parent should not be shown, as there is nothing to scroll in this case. You will understand it if you think just a bit.

And I would strongly recommend to never develop any UI in MDI.

—SA


如果将MDI容器表单的AutoScroll属性设置为'true,它将自动将'IsMDIContainer属性设置为'false,然后您的MDI应用程序在运行时会抛出错误。来自微软领主的另一个奇怪行为的礼物:)



将您的子表单的AutoScroll属性设置为'true,并在必要时显示滚动条它们在MDI容器表格中最大化。
If you set the AutoScroll Property of an MDI Container Form to 'true, it will automatically set the 'IsMDIContainer Property to 'false, and then your MDI app will throw an error when run. Another "gift" of strange behavior from the Lords of Microsoft :)

Set the AutoScroll Property of your child Forms to 'true, and Scrollbars will be shown as necessary when they are maximized in the MDI Container Form.


这篇关于当子表单处于最大化状态时,不会显示MDI父滚动条。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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