MDI winform 中级联的窗口数量
我有一个 MDI 应用程序,其启动窗口状态为“正常”。当我打开每个新的子表单时,它会自动以级联格式打开。它最终看起来像这样:
这几次没问题,但即使开得越来越低, :
您关闭其中一个或全部
您移动其中一个或全部
它会超出可见空间(迫使您滚动或移动它才能看到它)。
它最终会在 11 个打开实例后重置,并像原来一样从顶部开始打开。
我不知道如何将“11”数字更改为...也许...“3”。我该怎么做? 这个隐藏属性的名称是什么?
我担心这可能是我需要 .Net Reflector 才能看到的东西......有没有更好的方法来解决这个问题?
I have an MDI application that I have set up with a starting window state of "Normal". When I open each new child form, it automagically opens in a cascading format. It ends up looking like this:
This is fine for a few times, but it keeps opening lower and lower even if:
you close one or all of them
you move one or all of them
it runs way out of the visible space (forcing you to scroll or move it to see it).
It will eventually reset after 11 opened instances and start opening from the top like it did originally.
I can't figure out how to change that "11" number to ... maybe... "3". How do I do that?
What is the name of this hidden property?
I fear it may be something I need .Net Reflector to even see... Is there a better way to solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您需要手动执行此操作,方法是将子表单的 StartPosition 设置为“手动”,并在打开它们之前适当设置其“位置”属性: http://social.msdn.microsoft.com/Forums/en/winforms/thread/d9e0ff9f-52a0-4836-a718-2b73bdfb9cc6
It looks like you need to do this manually by setting the StartPosition of you child forms to Manual and setting their Location properties appropriately before when they open: http://social.msdn.microsoft.com/Forums/en/winforms/thread/d9e0ff9f-52a0-4836-a718-2b73bdfb9cc6