By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,483 Members | 3,312 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,483 IT Pros & Developers. It's quick & easy.

MDI window/parent form docking issue

P: n/a
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.
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"JDeats" <je****@pdq.net> wrote in message
news:b0**************************@posting.google.c om...
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.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.