By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,167 Members | 1,629 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,167 IT Pros & Developers. It's quick & easy.

'For...each' form loop problem

P: n/a
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!
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dim childForms As Windows.Forms.Form
For Each childForms In Me.MdiChildren
........
.......
Next

add the above code in MdiParent form

hope this helps.

--
Dhaval Faria
Founder, Programmer
Hirdhav (http://www.hirdhav.com)
Microsoft India Community Star
<Jh***@hotmail.com> wrote in message
news:oSI2c.198621$uV3.799289@attbi_s51...
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!

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.