Hiding of containing class property in propertyGrid
-
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
-
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
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!
-
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!
It does not hide ConnectionString in PropertyGrid of CombinedDestination Class. abc
-
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
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