> I developed a custom user control for the toolbox of Visual Studio 2005.
> How do I get the .Text property to show in the properties list after the
> user
> has dragged the control on the Form? All of the other custom properties
> show, but not the override of Text. Any ideas?
The "UserControl" class changes various attributes on this property for some
reason so you have to turn them back on again like so:
[EditorBrowsable(EditorBrowsableState.Always)]
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Bindable(true)]
public override string Text
{
get
{
// Whatever
}
set
{
// Whatever
}
}
Craig - 16 Jul 2007 18:06 GMT
That did the trick. Thank you!
> > I developed a custom user control for the toolbox of Visual Studio 2005.
> > How do I get the .Text property to show in the properties list after the
[quoted text clipped - 20 lines]
> }
> }