the problem:

i have a winforms user control. inside of it i have a textbox. my goal is to access this child textbox properties directly.

for example:
instead of > mycontrol.textbox.text = "example";
i want > mycontrol.text = "example";

the catch:

i don't want to use any overrides because
there is money events and properties.

===

is there a way to exposure all of the textbox properties
out to the user control by using attributes or any other way ?

ill appreciate any help, thanks !

Have you considered deriving your class from TextBox instead of UserControl?

Otherwise I think you will have to code all the properties that you need long hand.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.