G
Guest
I'm having a problem when opening an MDI Child form. I'm declaring the child
form then setting the dock property to fill so that it takes up the entire
space of the MDI Parent window without being maximized (user request). The
problem is that when the child form is being displayed it is briefly shown in
it's default size before being resized to fill the available area on the MDI
Parent form. How can I stop the MDI Parent from displaying the child form
until after all the load code is executed on the child form? I tried using
MDIParent.SuspendLayout() and MDIParent.ResumeLayout() but that didn't change
anything.
Here's the call to show the child form called from the MDI Parent
me.SuspendLayout() ' doesn't stop the flicker
dim frm as new Form2
frm.MdiParent = Me
frm.Dock = DockStyle.Fill
frm.Show()
me.ResumeLayout(True)
Thanks
form then setting the dock property to fill so that it takes up the entire
space of the MDI Parent window without being maximized (user request). The
problem is that when the child form is being displayed it is briefly shown in
it's default size before being resized to fill the available area on the MDI
Parent form. How can I stop the MDI Parent from displaying the child form
until after all the load code is executed on the child form? I tried using
MDIParent.SuspendLayout() and MDIParent.ResumeLayout() but that didn't change
anything.
Here's the call to show the child form called from the MDI Parent
me.SuspendLayout() ' doesn't stop the flicker
dim frm as new Form2
frm.MdiParent = Me
frm.Dock = DockStyle.Fill
frm.Show()
me.ResumeLayout(True)
Thanks