S
shapper
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 _AutoPostBackOnSelect As Boolean
Public Property AutoPostBackOnSelect() As Boolean
Get
Return _AutoPostBackOnSelect
End Get
Set(ByVal value As Boolean)
_AutoPostBackOnSelect = value
End Set
End Property ' AutoPostBackOnSelect
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 _AutoPostBackOnSelect As Boolean
Public Property AutoPostBackOnSelect() As Boolean
Get
Return _AutoPostBackOnSelect
End Get
Set(ByVal value As Boolean)
_AutoPostBackOnSelect = value
End Set
End Property ' AutoPostBackOnSelect
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