Home All Groups Group Topic Archive Search About

Controls in a User Control

Author
29 May 2006 3:52 PM
Dave
Given the name of a User Control, how can I programmatically get a list of
the controls that are in it?

Thanks for your help.

Author
29 May 2006 4:27 PM
Dave
I found it. Thanks anyway.

Show quoteHide quote
"Dave" wrote:

> Given the name of a User Control, how can I programmatically get a list of
> the controls that are in it?
>
> Thanks for your help.
>
>
Author
29 May 2006 7:24 PM
Herfried K. Wagner [MVP]
"Dave" <D***@discussions.microsoft.com> schrieb:
> Given the name of a User Control, how can I programmatically get a list of
> the controls that are in it?

Check out its 'Controls' collection property.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>