MDI window/parent form docking issue

J

JDeats

I have a WinForm that is set as an MDIContainer, I have an Panel on
this form that has it's docking property set to "Top". When a spawn an
MDI childform inside my parent all is well untill I maximize the MDI
child window, when I do this the title bar (with max, min buttons,
etc..) for the child appears above my docked Panel.

The desired effect is for the MDI child window to maximize with its
title bar under the the docked panel on the MDI Parent.
 
J

Jay B. Harlow [MVP - Outlook]

JDeats,
I do not believe you can control that, as Win32 itself is controlling it.

The child's max, min, etc... for the child are placed in the menu bar of the
parent when it is maximized, hence the effect you are seeing. This would be
the same thing if you had placed a toolbar on your MDI Container form.

One thought I have, but have not tested, is to make your MdiContainer form a
child of your real main form, and have it docked = Fill the area below your
panel. You would need to turn off the TopLevel property of the mdi
container, and set the Parent property to the real main form. I believe you
would need to turn off all the adornments of the mdi container.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top