M
Mike
I have added some properties for my component and want to set the
default properties so they show the defaults when the component is
dropped on a form.
For example, should one property
Public Class WildcatComponent
Private Shared _ServerHost As String = "HDEV21"
<System.ComponentModel.DefaultValue("LocalHost")> _
Public Property ServerHost() As String
Get
Return _ServerHost
End Get
Set(ByVal value As String)
_ServerHost = value
End Set
End Property
End function
When I compile and add it to the toolbox and then in a test form
dropped the component, I am seeing a BLANK for this field. I am
expecting to see in the property editor
ServerHost: LocalHost
But its blank.
What am I missing here in setting the default.
--
default properties so they show the defaults when the component is
dropped on a form.
For example, should one property
Public Class WildcatComponent
Private Shared _ServerHost As String = "HDEV21"
<System.ComponentModel.DefaultValue("LocalHost")> _
Public Property ServerHost() As String
Get
Return _ServerHost
End Get
Set(ByVal value As String)
_ServerHost = value
End Set
End Property
End function
When I compile and add it to the toolbox and then in a test form
dropped the component, I am seeing a BLANK for this field. I am
expecting to see in the property editor
ServerHost: LocalHost
But its blank.
What am I missing here in setting the default.
--