Access to Children of a UserControl
I created a basic user control with a textbox and a button. It is a lookup control. The documentation I read said you could not access the textbox properties directly and would have to handle those at the UserControl level and pass them through.
That is what I want to happen, and expected to happen.
But I have found that in my form's code, I can get access to them using something like:
myCtrl.Controls[0].Name
I also see everything about the contained controls in the debugger's watch window. How do I hide all this stuff?

Andrzej WegierskiRank #1,729 · 877 reputationPosted Apr 25, 2004, 9:49 PM EDT
sjonesRank #7,001 · 251 reputationPosted Apr 26, 2004, 4:18 AM EDT
Andrzej WegierskiRank #1,729 · 877 reputationPosted Apr 26, 2004, 11:56 PM EDT
sjonesRank #7,001 · 251 reputationPosted Apr 27, 2004, 5:24 AM EDT
Andrzej WegierskiRank #1,729 · 877 reputationPosted Apr 28, 2004, 9:29 PM EDT