views:

18

answers:

1

The MDI child forms, when shown, display their title bars for a split second. Then the forms are loaded normally. Is there any way for the forms to load without showing the title bar and form border. This is what happens...

alt text

alt text

+2  A: 

Not sure I see it from the screenshots. But the complaint is a familiar one. MDI really dislikes a maximized child window. When you display a new child window and make it maximized as well then it needs to go through a song-and-dance. First it restores the current child so it is no longer maximized. Then creates the new child and sets the focus to it. Then maximizes it. Those intermediate steps are visible and can produce a good amount of flicker when drawing the child is expensive. Yours look expensive. You cannot suppress the painting.

If you always display your MDI child windows maximized then MDI is the wrong form model to use. Just use a simple form, make the child 'windows' user controls. You can even rescue your current child forms by setting their TopLevel property to false, that turns them into controls. Set FormBorderStyle to None and Visible to true.

Hans Passant
Thanks Hans, I understand the issue much better now. Will try your suggestions.
Thomas