Show MDI child as not maximized
-
I have a MDI container, inside of it I have a child form that is maximized. If I have a second form created and displayed by the first form that is maximized (with its MdiParent property set properly) the second form will also be maximized. Is there anyway to override this behavior? I know I can use ShowDialog, but I don't want it to be a dialog I want it to be a normal, nonmaximized window. The property on the form is set to Normal and I event do a WindowState = FormWindowState.Normal in the constructor, but it still comes as maximized. Any suggestions?
-
I have a MDI container, inside of it I have a child form that is maximized. If I have a second form created and displayed by the first form that is maximized (with its MdiParent property set properly) the second form will also be maximized. Is there anyway to override this behavior? I know I can use ShowDialog, but I don't want it to be a dialog I want it to be a normal, nonmaximized window. The property on the form is set to Normal and I event do a WindowState = FormWindowState.Normal in the constructor, but it still comes as maximized. Any suggestions?
eggsovereasy wrote:
Is there anyway to override this behavior?
No. All the MDI child forms are treated the same. If one is maximized, they all are. If one is "normal", they all are.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
eggsovereasy wrote:
Is there anyway to override this behavior?
No. All the MDI child forms are treated the same. If one is maximized, they all are. If one is "normal", they all are.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Disappointing :( Thank you for the reply though, I guess I will try and make something work with ShowDialog().