MDI child maximizing doesn't work right

  • Thread starter Thread starter Elmo Watson
  • Start date Start date
E

Elmo Watson

(using VS.net 2005 - never used DotNet WinForms til now - previously only
used VB6)

I have set my mdi child form to a window state of maximized.

However, the first file I open is not maximized and I can not get to the
drag bar.

But then, the second file I open (using the same function) IS maximized and
it maximizes the first, previously opened mdiChild also...

Here's the code I'm using:
objDoc=New frmEdit
objDoc.MdiParent=frmMain (keep in mind, this is in a module)
objDoc.Text="Untitled"
objDoc.Show

What's the trick here, that I assume I'm missing?
 
I had originally set it to maximized in the property window --
Once I set that back to normal - and then, did what you suggested - it
worked - -
 
Back
Top