Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Hiding of containing class property in propertyGrid

Hiding of containing class property in propertyGrid

Scheduled Pinned Locked Moved Visual Basic
help
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kumarprabhakar74
    wrote on last edited by
    #1

    Public Class AdvanceLogon Inherits CombinedDestination _ Public Overrides Property ConnectionString() As String Get End Get Set(ByVal Value As String) End Set End Property End Class when i complie the code, it gives the error ConnectionString is not overidable because it is a part of internal class of CombinedDestination class. How we can hide internal class property kumar Prabhakar -- modified at 5:06 Wednesday 8th March, 2006

    A D 2 Replies Last reply
    0
    • K kumarprabhakar74

      Public Class AdvanceLogon Inherits CombinedDestination _ Public Overrides Property ConnectionString() As String Get End Get Set(ByVal Value As String) End Set End Property End Class when i complie the code, it gives the error ConnectionString is not overidable because it is a part of internal class of CombinedDestination class. How we can hide internal class property kumar Prabhakar -- modified at 5:06 Wednesday 8th March, 2006

      A Offline
      A Offline
      alien viper
      wrote on last edited by
      #2

      To hide the member of base class, you can use shadows keyword. Public Shadows Property ConnectionString() As String Get End Get Set(ByVal Value As String) End Set End Property !alien!

      K 1 Reply Last reply
      0
      • A alien viper

        To hide the member of base class, you can use shadows keyword. Public Shadows Property ConnectionString() As String Get End Get Set(ByVal Value As String) End Set End Property !alien!

        K Offline
        K Offline
        kumarprabhakar74
        wrote on last edited by
        #3

        It does not hide ConnectionString in PropertyGrid of CombinedDestination Class. abc

        1 Reply Last reply
        0
        • K kumarprabhakar74

          Public Class AdvanceLogon Inherits CombinedDestination _ Public Overrides Property ConnectionString() As String Get End Get Set(ByVal Value As String) End Set End Property End Class when i complie the code, it gives the error ConnectionString is not overidable because it is a part of internal class of CombinedDestination class. How we can hide internal class property kumar Prabhakar -- modified at 5:06 Wednesday 8th March, 2006

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          IIRC, you can't. You'd have to take that class out of the CombinedDestination class to do this. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups