sjones

sjones

  • NA
  • 135
  • 0

Access to Children of a UserControl

Apr 22 2004 12:53 PM
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?

Answers (5)