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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top