Property Browser not displaying my Description attribute

N

Nathan Sokalski

I have added Description attributes to several of my Control's Properties,
but they are not appearing in the Property Browser. Here is the declaration
of my Property:

<System.ComponentModel.Description("ID of the control that determines
whether validation will occur")> _
Public Property ConditionControlID() As String
Get
Return Me.conditionid
End Get
Set(ByVal value As String)
Me.conditionid = value
End Set
End Property

I have recompiled the Control, closed all the files, and even closed Visual
Studio 2005, but the description still does not appear in the Property
Browser. The Description area in the Property Browser is visible, and it has
the property name, but it does not show the description. What am I
forgetting and/or doing wrong? Thanks.
 
T

Tom Shelton

I have added Description attributes to several of my Control's Properties,
but they are not appearing in the Property Browser. Here is the declaration
of my Property:

<System.ComponentModel.Description("ID of the control that determines
whether validation will occur")> _
Public Property ConditionControlID() As String
Get
Return Me.conditionid
End Get
Set(ByVal value As String)
Me.conditionid = value
End Set
End Property

I have recompiled the Control, closed all the files, and even closed Visual
Studio 2005, but the description still does not appear in the Property
Browser. The Description area in the Property Browser is visible, and it has
the property name, but it does not show the description. What am I
forgetting and/or doing wrong? Thanks.

Nathan...

I don't see anything obviously wrong here. I just did a quick test,
and I can't recreate the issue here using VS2005. If I were you, I
would scale this down to the smallest possible control that exhibits
this behavior. Basically comment out all properties/methods etc. that
aren't necessary for this particular property. Then, see if the
problem still exits. Just a thought - are you accessing any
datasources in the constructor?
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top