Ste_Moore01
Member
- Joined
- Aug 12, 2013
- Messages
- 6
- Programming Experience
- 3-5
Hi,
If I create a user control and create my own property, how do I set a default value for it?
For example, I have been creating a control that I can select for deletion, and when this happens it will change color.
The DeleteColor property can be set, but if I don't set it what would the default value and how do I change what this may be?
If I create a user control and create my own property, how do I set a default value for it?
For example, I have been creating a control that I can select for deletion, and when this happens it will change color.
The DeleteColor property can be set, but if I don't set it what would the default value and how do I change what this may be?
VB.NET:
Dim _DeleteColor As Color
Public Property DeleteColor As Color
Get
Return _DeleteColor
End Get
Set(value As Color)
_DeleteColor = value
End Set
End Property