Maximizing Child Forms

xiecsuk

Member
Joined
Apr 24, 2005
Messages
23
Location
Coventry, Warwickshire, UK
Programming Experience
10+
I have a .NET 2.0 application consisting of an MDI form and 3 child forms each derived from a base child form. When one child form is maximized, they are all maximized. Is this normal? I have a Windows pulldown which allows the User to select each form or to tile them.

I also have another form which is an About form with FormBorderStyle = FixedDialog. This is not declared as a child of the MDI form, as far as I know. When opened with one of the child forms minimised, it opens as I would expect, in the middle of the screen with the title area displayed. If it is opened with a maximized child form, it is opened in the top left of the MDI form without the title area. Another minimized copy of the child form is also opened behind it on top of the maximized copy of the child form. :confused: When the About form is closed. the minimized copy of the child form is also closed, but the display is still visible in the display of the maximized copy of the child form.

How do I get the About form to display without being affected by the child forms?
 
You're right, ss7thirty. I was "somehow treating it as a child form". In fact, it was specifically coded that way. :eek: Removing the code now displays it OK, but of course, it can now fall outside the MDI form. However, if you ignore the sentence "This is not declared as a child of the MDI form, as far as I know.", the phenomenon described in my original post is still interesting. Obviously a bug within .NET 2.0?

Do you, or anyone else, know of a way of keeping a child form minimised when other forms have been maximised?
 
I have a .NET 2.0 application consisting of an MDI form and 3 child forms each derived from a base child form. When one child form is maximized, they are all maximized. Is this normal?
This is by design how all MDI apps behave.
 
Back
Top