I have this custom class. When I select it in the designer, I can't get
the property "SelectedBackCo lor" to show up. Any help? Thanks
Chris
Public Class FormatedTextbox
Inherits Windows.Forms.T extBox
Dim m_SelectedBackC olor As Color
Dim m_OrigBackColor As Color
Public Property SelectedBackCol or() As Color
Get
Return m_SelectedBackC olor
End Get
Set(ByVal Value As Color)
m_SelectedBackC olor = Value
End Set
End Property
Protected Overrides Sub OnGotFocus(ByVa l e As System.EventArg s)
m_OrigBackColor = Me.BackColor
Me.BackColor = m_SelectedBackC olor
End Sub
Protected Overrides Sub OnLostFocus(ByV al e As System.EventArg s)
Me.BackColor = m_OrigBackColor
End Sub
End Class
Comment