'property cannot be set declaratively.'??

C

cannontrodder

Hi,

I've created a custom control yet when I add the attribute
ListStyle="astyle" to my declaration,
I get the error: "The 'ListStyle' property cannot be set
declaratively."

It shows up in the properties window in the designer though.

Any ideas what I need to do to allow me to actually set this?

<Bindable(True), _
Category("Appearance"), _
Description("The class for the list."), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)>
_
Public Property ListStyle() As String
Get
Return _listStyle
End Get
Set(ByVal value As String)
_listStyle = value
End Set
End Property
 

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