MDI Parent refresh issue when loading an MDI Child form

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
 
C

Cor Ligthert

Itar,

Are you really asking if we will help you because your user won't use normal
behaviour and maximize the mdi form.

What should we learn from that?

Cor
 
G

Guest

That's it in a nutshell. What we learn from this is that users are finciky,
fickle creatures that cause no end to grief, but without whom I wouldn't have
a job.

Itar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top