Opening multiple MDI children maximized.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.
 
With your simple question, a simple answer....

AIR CODE
Dim i As Integer
Dim f As Form

For i = 0 To 99999
f = New Form2
f.MdiParent = Me
f.Text = f.Name & i
f.Show()
Next i

f.WindowState = FormWindowState.Maximized
 
Sorry, I see your more in-depth question...

Brian P. Hammer said:
With your simple question, a simple answer....

AIR CODE
Dim i As Integer
Dim f As Form

For i = 0 To 99999
f = New Form2
f.MdiParent = Me
f.Text = f.Name & i
f.Show()
Next i

f.WindowState = FormWindowState.Maximized
 
Al,

Just add the forms and set their WindowsState to maximized. BTW it is enough
to set the state to only one of them. If even one child in the MDI container
is maximized the container maximizes all. AFAIK there is no way to have one
maxmized and one in a normal state.
 
Back
Top