Load an MDI child maximized...

M

Martin

VB2005 / XP SP2

Hi all,
I'm just a newbie in VB.Net and I created an MDI container form, with a menu
and when I choose something from the menu, it should load the MDI child form
maximized.

To achieve this I set the WindowState property of the child to 'Maximized'
and use the following code to display the form:

frmPatient.MdiParent = Me
frmPatient.Show()

The window loads not maximized in the MDI container, but as soon as I resize
or move the MDI Container the Child form maximizes. Do I need to repaint or
something?

Tia,
Martin
 

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