mooman_fl
Centurion
I am wanting to add the Public property Text() to my usercontrol. It obviously can't be added as a regular property. When I try adding it the normal way I am given an error saying it Shadows an overridable method in a base class.
So I tried this:
This seems to work fine when changing the property programmatically (i.e. It shows up in the intellisense list) but the property doesn't show up at designtime in the property list.
What am I doing wrong? Also a brief explanation as to why it is wrong will help me from making the same mistakes later.
So I tried this:
Visual Basic:
Public Overrides Property Text() As String
Get
Return strHeaderText
End Get
Set(ByVal Value As String)
strHeaderText = Value
Header.Text = strHeaderText
End Set
End Property
This seems to work fine when changing the property programmatically (i.e. It shows up in the intellisense list) but the property doesn't show up at designtime in the property list.
What am I doing wrong? Also a brief explanation as to why it is wrong will help me from making the same mistakes later.