MDI defect with ControlBox property set false

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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.
 
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
 
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.
 
Back
Top