Display ASP.NET VB User Control property in VS IDE

1k views Asked by At

I built a VB ASP.NET 1.1 Web User Control that contains several properties. I want these properties to display in the VS2003 IDE Properties window, for easy manipulation. However, none of the properties appear! How do I make them show in the IDE?

I am a C# guy, and not very familiar with VB, so this is probably a no-brainer. Here's a property, including attributes:

Private _priceHigh As String = "2000"
<Browsable(True), Category("SearchProperties"), Description("Foo"), DefaultValue("2000")> _ 
Public Property PriceHigh() As String
  Get
    Return _priceHigh
  End Get
  Set(ByVal Value As String)
    _Pricehigh = Value
  End Set
End Property
1

There are 1 answers

5
Joel Coehoorn On

Your attribute syntax is wrong. It should look like this:

<Browsable(True)> _
<Category("SearchProperties")> _
<Description("Foo")> _
<DefaultValue("2000")> _
Public Property ....