MDI child forms minimize all?

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
 
J

Jan Tielens

You could loop through the MDI Children:
For Each form As Form In Me.MdiChildren
form.WindowState = FormWindowState.Minimized
Next
 
A

Armin Zingler

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
 
H

Herfried K. Wagner [MVP]

* (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
///
 

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