Removing User Control Properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created a user control in the VS2003 1.1 framework and I'd like to
remove the properties on the control that I didn't add and I don't want the
user changing, .Text for example.

Is this possible?
 
#if DESIGN
[Browsable(false),
EditorBrowsable(EditorBrowsableState.Never),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
}
}
#endif
 
Back
Top