Home All Groups Group Topic Archive Search About

iterating through forms collection in .net

Author
17 Jan 2006 12:35 PM
Mike
Hi,

How can I iterate through the forms collection in vb.net (2003).  In VB6 I
did:
For Each f In Forms


    blah

Next f



Thanks

Mike

Author
17 Jan 2006 2:52 PM
Herfried K. Wagner [MVP]
"Mike" <m***@n-o--s-p-a-m.luusac.co.uk> schrieb:
> How can I iterate through the forms collection in vb.net (2003).  In VB6 I
> did:
> For Each f In Forms

There is no 'Forms' collection in .NET 1.*.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Are all your drivers up to date? click for free checkup

Author
17 Jan 2006 5:13 PM
Ivan
You'd have to keep track of your forms by adding them to your own
collection as you create them (and remove them from the collection when
you close them).

Bookmark and Share