开发者

Number of windows to cascade in MDI winform

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:

Number of windows to cascade in MDI winform

This is fine for a few times, but it keeps opening lower and lower even if:

  1. you close one or all of the开发者_StackOverflow社区m

  2. you move one or all of them

  3. 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜