'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.
 

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

Back
Top