I need to overwrite a public property in an inherited control and make it private, or at least give it the appearance of being private. Let's start w/ the code:
Private Class pageLink
Inherits HyperLink
Public Overrides Property Text() As String
Get
Return Me.Text
End Get
Set(ByVal Value As String)
Me.Text = Value
End Set
End Property
End Class
What I would like to do is this:
Private Class pageLink
Inherits HyperLink
Private Overrides Property Text() As String
Get
Return Me.Text
End Get
Set(ByVal Value As String)
Me.Text = Value
End Set
End Property
End Class
....Which of course is impossible because they have different access levels. In effect what I want to do is make it so the Text property of this control does not appear in the Properties window in Design (which, I know, can be done with <Browsable(False)>_), but also make the Text property not appear (or at minimum be read-only) from outside the Class parent to pageLink (in my case called pageRight). Incidentally, I wouldn't mind if it was read-only or even not visible from INSIDE pageRight, because I could still set the property through pageLink's New() subroutine, as it only needs to be set once.
Much thanks.
http://www.grinn.net