Results 1 to 2 of 2

Thread: [RESOLVED] Make public base class property inaccessible in derived class - or just hide it

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Resolved [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?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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] () {} .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width