MDI child maximizing doesn't work right

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?
 
E

Elmo Watson

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 - -
 

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