Property Descriptions in Custom Components

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey Gang,

I'm writing my first custom component and am trying to add the text that
describes the custom properties. I'm talking about the text that displays in
the property inspector (design time) when you highlight a property, in the
bottom box that describes what it is for.

I've tried:

/// <value>This is my property</value>
/*This is my property*/
/**This is my property*/
//This is my property

Thanks for the help!
(e-mail address removed)
 
Hi Jason,

You need to use the DescriptionAttribute attribute (System.ComponentModel
namespace) on the property.

[Description("This is a description of the property")]
public int MyProperty
{
}
 
You guys rock! Thanks!

Rodger Constandse said:
Hi Jason,

You need to use the DescriptionAttribute attribute (System.ComponentModel
namespace) on the property.

[Description("This is a description of the property")]
public int MyProperty
{
}

--
Rodger Constandse

<http://www.SequenceDiagramEditor.com>
Sequence Diagram Editor - A quick and easy way to draw and edit sequence diagrams

Jason said:
Hey Gang,

I'm writing my first custom component and am trying to add the text that
describes the custom properties. I'm talking about the text that displays in
the property inspector (design time) when you highlight a property, in the
bottom box that describes what it is for.

I've tried:

/// <value>This is my property</value>
/*This is my property*/
/**This is my property*/
//This is my property

Thanks for the help!
(e-mail address removed)
 

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

Back
Top