Hello,
I have two properties in a custom control. One is of a boolean type
and the other is an enum type.
How can I define a default value when they are not defined?
Here is my code:
Private _AutoPostBackOn Select As Boolean
Public Property AutoPostBackOnS elect() As Boolean
Get
Return _AutoPostBackOn Select
End Get
Set(ByVal value As Boolean)
_AutoPostBackOn Select = value
End Set
End Property ' AutoPostBackOnS elect
Private _Type As WebMenuItemType
Public Property Type() As WebMenuItemType
Get
Return _Type
End Get
Set(ByVal value As WebMenuItemType )
_Type = value
End Set
End Property ' Type
Thanks,
Miguel
I have two properties in a custom control. One is of a boolean type
and the other is an enum type.
How can I define a default value when they are not defined?
Here is my code:
Private _AutoPostBackOn Select As Boolean
Public Property AutoPostBackOnS elect() As Boolean
Get
Return _AutoPostBackOn Select
End Get
Set(ByVal value As Boolean)
_AutoPostBackOn Select = value
End Set
End Property ' AutoPostBackOnS elect
Private _Type As WebMenuItemType
Public Property Type() As WebMenuItemType
Get
Return _Type
End Get
Set(ByVal value As WebMenuItemType )
_Type = value
End Set
End Property ' Type
Thanks,
Miguel
Comment