C#: How to change the region containing MDI children?

Posted by Erlend D. on Stack Overflow See other posts from Stack Overflow or by Erlend D.
Published on 2009-10-07T22:14:42Z Indexed on 2010/05/19 16:00 UTC
Read the original article Hit count: 462

Filed under:
|
|
|

When creating a MDI parent, the entire "inside" of the form is made the MDI region.

If you add a menustrip to the MDI parent, the MDI region is scaled down a bit to make room for the menustrip.

But if you add a panel to the top of the MDI parent, the entire inside is still the MDI region. Which means that you can move MDI children up behind the panel, and hide their title line. If you move MDI children behind a menustrip, scrollbars appear, and you can scroll higher up to access the title line. But the scrollbars doesn't appear when you are using a panel instead of a menustrip. Because the MDI region doesn't know about the panel, I suppose.

How can I scale the MDI region to start below a given Y value?

© Stack Overflow or respective owner

Related posts about c#

Related posts about mdi