I have developed a user control with the following property.
<DefaultValue(GetType(System.Boolean), "True"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _
Public Property Required() As Boolean
Get
Return _Required
End Get
Set(ByVal value As Boolean)
_Required = value
End Set
End Property
I am having trouble with the property persisting from design time to runtime. The form I have has multiple instances of this control on it and when I set this property at design time, then close the form, it is not set correctly when I open the form designer again. Any help is appreciated.
thanks,
Paul
<DefaultValue(GetType(System.Boolean), "True"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _
Public Property Required() As Boolean
Get
Return _Required
End Get
Set(ByVal value As Boolean)
_Required = value
End Set
End Property
I am having trouble with the property persisting from design time to runtime. The form I have has multiple instances of this control on it and when I set this property at design time, then close the form, it is not set correctly when I open the form designer again. Any help is appreciated.
thanks,
Paul