MDI child forms minimize all?

  • Thread starter Thread starter al
  • Start date Start date
A

al

Greetings,

What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have them
all minimized in one method call?

MTIA,
Grawsha
 
You could loop through the MDI Children:
For Each form As Form In Me.MdiChildren
form.WindowState = FormWindowState.Minimized
Next
 
al said:
Greetings,

What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have
them all minimized in one method call?

dim f as form

for each f in me.mdichildren
f.windowstate = FormWindowState.Minimized
next
 
* (e-mail address removed) (al) scripsit:
What is the method to use to get all MDI child forms to minimize.
That is, if there are four open MDI child forms, how can I have them
all minimized in one method call?

\\\
Public Sub MinimizeAllChildren()
Dim f As Form
For Each f In Me.MdiChildren
f.WindowState = FormWindowState.Minimized
Next f
End Sub
///
 
Back
Top