'For...each' form loop problem

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

Guest

Any help would be greatly appreciated.
I'm trying to loop through my child forms.I've seen the "for...each" loop to do this
somewhere but can't find it now. I'm thinking storing the form names in an arraylist maybe?
For each form(not right) in System.Windows.Forms.Form(not right)
Thank You!
 
Dim childForms As Windows.Forms.Form
For Each childForms In Me.MdiChildren
........
.......
Next

add the above code in MdiParent form

hope this helps.
 
Back
Top