Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to my User Control which has TextBox and Label from Toolbox have property from base class TextBox and Label in project where I want to use that control.
When I create object of my control I want to access TextBox of my control and its property..
Thank you!
Posted

Following this[^] article may help you. The good stuff is on the 2nd page and on.

It covers Dependency Properties which is one way to achieve what you want to do.
 
Share this answer
 
You should be able to do this without any changes because by default the control variables are generated with internal visibility.

[edit] they are internal and not public as I had originally posted.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900