MDI defect with ControlBox property set false

G

Guest

I have an MDI application that uses several different classes of derived child forms. One derived child form class has its ControlBox property set to false at design time. It correctly displays in the MDI client area without any control boxes in the title bar (no minimize, no maximize and no close buttons).

However, if I double-click on the child form's title bar, it does the maximize behavior. The form now fills the entire MDI client area. It now also has control boxes!! And the control boxes remain if I click on the restore-size button!! So now my design-time choice of not offering control boxes has been undone!

Is this a defect?

Is it possible to prevent the double-click in the title bar from maximizing the child form?

Thanks,
Dave
 
Y

Ying-Shen Yu[MSFT]

Hi Babel,

From my understanding ,you need a MDI window which it could not be
maximized, minimized, and there is no system menu on it.
Beside setting ControlBox to false, You may also set the MaximizeBox
property of the MDI Form to false.
Does it solve your problem?


Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
G

Guest

Set the MaximizeBox property of the child form to false. This will disable the ability to maximize the form by double clicking on the title bar.
 
G

Guest

Ying-Shen

Yes, setting the MaximizeBox to false did solve the problem. However, it seems to me that setting the ControlBox to false should have also prevented the double-click action, since allowing it means the ControlBox must be enabled after maximizing the window so that the window can be restored to original size.

Thanks
Dav

----- \"Ying-Shen Yu[MSFT]\" wrote: ----

Hi Babel

From my understanding ,you need a MDI window which it could not be
maximized, minimized, and there is no system menu on it
Beside setting ControlBox to false, You may also set the MaximizeBox
property of the MDI Form to false
Does it solve your problem


Best regards,

Ying-Shen Yu [MSFT
Microsoft Online Partner Suppor
Get Secure! - www.microsoft.com/securit

This posting is provided "AS IS" with no warranties and confers no rights
This mail should not be replied directly, "online" should be removed before
sending
 
G

Guest

Jose

Thanks for your reply. Setting the MaximizeBox property did solve the problem

Dav

----- Jose Gonzalez wrote: ----

Set the MaximizeBox property of the child form to false. This will disable the ability to maximize the form by double clicking on the title bar.
 

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