hiding of inherited properties doesn't work

  • Thread starter Thread starter Thomas Ott via .NET 247
  • Start date Start date
T

Thomas Ott via .NET 247

Salve,

having inherited from InheritsSystem.Web.UI.WebControls.WebControl, I want to hide someproperties and methods. So I set<Browsable(False),EditorBrowsable(EditorBrowsableState.Never),DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _ in front of the properties. Finally these propertiesare hidden in the designer but not in the code. Could anybodyplease gime a hint what's wrong with this code? In additionwould it be interesting how to hide events and methods.

ThX for your help
Thomas
 
Hi Thomas
you need to declare them as private .
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top