Hi,
this is in the server or in the client?
If in the server you can use the Controls collection, but be aware, you need
to do a deep search of it, as each control inside this collection can have
controls itself. !!!
something like this:
void iteratecontrol( ControlCollection controls)
{
foreach( Control current in controls)
{
UseCurrentControl( current );
//Iterate in the children
iteratecontrol( current.Controls);
}
}
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Bernardo" <bp****@sapo.pt> wrote in message
news:F3**********************************@microsof t.com...
Hi,
I want to Get all controls names, some properties, etc... from a form at
runtime. Anyone knows how can i enumerate all controls from a form?
Thanks for your help,