Skip to content

UserControl with TextBox

Lee John

Asked Oct 3, 2006, 6:02 AM EDT1 answer
Share
LinkedInX
Hi,

I create a userControl with a TextBox. When I put this userControl to  form. I can not see the "text" property in Propert Windows.

 I don't know Why? and I want to know how to access this property?

Thanks you

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Ensure that you create a class Library project & inherit your class from the textbox control i.e. inherits Windows.Forms.Controls.Textbox. This will by default bring "Text" property of the textbox to your control.
    0