On 19 Feb 2005, "et" <ea*************@yahoo.com> postulated in
news:Oh**************@TK2MSFTNGP15.phx.gbl:
Subject: Controls Collection
From: "et" <ea*************@yahoo.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
you used to be able to do:
dim ctrl as Controls
for each ctrl in myform
'do this
next
Now I cannot do that. How can I do something for every control on
a form or a page.
Considering you haven't initialized myForm, no you cant.
Have you tried iterating over:
For Each ctrl in yourPage.Controls
In C# the current page is called this, as in this.Controls
Can't help you right now in VB. (Bad memory!)
-- ipgrunt