PDA

Click to See Complete Forum and Search --> : [RESOLVED] Make public base class property inaccessible in derived class - or just hide it


wey97
Apr 28th, 2005, 09:25 AM
I'm inheriting from WebControl...
I don't believe there's a way to do this...an accessibility conflict.

Is there at least a way to hide the method in Intellisense and the toolbox?

Pirate
May 1st, 2005, 10:33 PM
I don't think so too . But you can hide it (disabling it actually from running) in the inherited class by using new modifier . Like this :

new public [return type] [method's name] () {} .