
- VBForums
- .NET and More
- C#
- [RESOLVED] Make public base class property inaccessible in derived class - or just hide it
-
Apr 28th, 2005, 09:25 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Make public base class property inaccessible in derived class - or just hide it
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?
-
May 1st, 2005, 10:33 PM
#2
Sleep mode
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] () {} .

- VBForums
- .NET and More
- C#
- [RESOLVED] Make public base class property inaccessible in derived class - or just hide it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|