How can I get an overridden Text property of my user control to show up in the form designer in VS20

Posted by recursive on Stack Overflow See other posts from Stack Overflow or by recursive
Published on 2009-02-18T17:38:58Z Indexed on 2010/03/20 21:41 UTC
Read the original article Hit count: 289

I have a user control with the following code in it.

[System.ComponentModel.Category("Appearance")]
public override string Text { ... }

private int myVar;
[System.ComponentModel.Category("Appearance")]
public int MyProperty { ... }

MyProperty shows up in the property grid when the control is inserted in a form, but Text does not. How can I get it visible?

© Stack Overflow or respective owner

Related posts about visual-studio-2005

Related posts about c#