Drawing Forms
-
I have an mdi container form that contains a tab control down the left and when a tab is clicked it loads a form to fill the reaming area inside the mdi form. The problem I have is that when it loads you can see the form beign drawn and it looks aweful. Is there anyway that the form can be loaded without it showing each control being drawn?
-
I have an mdi container form that contains a tab control down the left and when a tab is clicked it loads a form to fill the reaming area inside the mdi form. The problem I have is that when it loads you can see the form beign drawn and it looks aweful. Is there anyway that the form can be loaded without it showing each control being drawn?
Indeed you can at the start of your code add
this.SuspendLayout()
..and after everything's done..this.ResumeLayout(true)
-- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!