DefaultValue Property attribute in design time

J

job

I'm having trouble getting the DefaultValue property attribute on my
server control show up in design time.

Here my property code:

<Bindable(True), _
Category("Misc"), _
DefaultValue("myDefaultValue")> _
Public Property MyProperty() As String
Get
Return m_MyProperty
End Get
Set(ByVal Value As String)
m_MyProperty = Value
End Set
End Property

The property shows up fine in the property tab group, but the value is
not set to the default value set in the property attribute.

/M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top