Why does the text property overridden in user control is not showing at design time
user-controls, vb.net
Solution
Added following attributes and the problem is solved.
<EditorBrowsable(EditorBrowsableState.Always)> _
<Browsable(True)> _
<DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
<Bindable(True)> _
Public Overrides Property Text() As String
Get
Return lblText.Text
End Get
Set(ByVal value As String)
lblText.Text = value
End Set
End Property
Problem
I have a usercontrol which overrides the property Text. But this property is not shown at design time. If I rename it to caption or value it is shown in properties at design time but Text is not shown. ``` public Class SomeControl Inherits System.Windows.Forms.UserControl Public Overrides Property Text() As String Get Return lblText.Text End Get Set(ByVal value As String) lblText.Text = value End Set End Property End Class ``` What to do?