I have written a user control with two properties, text and blockcolor (see below for code).
The problem is that the Text property is not visible at design time, whilst the BlockColor property is.
What's wrong?
Property BlockColor() As Color
Get
Return (mBlockColor)
End Get
Set(ByVal Value As Color)
mBlockColor = Value
Block.BackColor = mBlockColor
End Set
End Property
Public Overrides Property Text() As String
Get
Return (TextBox1.Text)
End Get
Set(ByVal Value$)
TextBox1.Text = Value
End Set
End Property
The problem is that the Text property is not visible at design time, whilst the BlockColor property is.
What's wrong?
Property BlockColor() As Color
Get
Return (mBlockColor)
End Get
Set(ByVal Value As Color)
mBlockColor = Value
Block.BackColor = mBlockColor
End Set
End Property
Public Overrides Property Text() As String
Get
Return (TextBox1.Text)
End Get
Set(ByVal Value$)
TextBox1.Text = Value
End Set
End Property