How to minimize with code all de childforms in the parentform

  • Thread starter Thread starter andreas
  • Start date Start date
A

andreas

Hi,

How to minimize with code all de childforms in the parentform.
I want to put a menuitem with text "MInimize all" in a parent form to
minimize all the child forms in the parent form at once.
How to code ?
 
Hi,

Dim frm As Form
For Each frm In Me.MdiChildren
frm.WindowState = FormWindowState.Minimized
Next

Ken
-------------------
 
* "andreas said:
How to minimize with code all de childforms in the parentform.
I want to put a menuitem with text "MInimize all" in a parent form to
minimize all the child forms in the parent form at once.

Untested:

\\\
Dim f As Form
For Each f In Me.MdiChildren
f.WindowState = FormWindowState.Minimized
Next f
///
 
Back
Top