By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,667 Members | 1,697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,667 IT Pros & Developers. It's quick & easy.

Property Descriptions in Custom Components

P: n/a
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!
ja*********@cox.net


Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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 Perry wrote:
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!
ja*********@cox.net

Nov 16 '05 #2

P: n/a
Hi Jason,

use: [DescriptionAttribute("... description ....")]
Santiago Corredoira
www.syltek.com
Nov 16 '05 #3

P: n/a
You guys rock! Thanks!

"Santi" wrote:
Hi Jason,

use: [DescriptionAttribute("... description ....")]
Santiago Corredoira
www.syltek.com

Nov 16 '05 #4

P: n/a
You guys rock! Thanks!

"Rodger Constandse" wrote:
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 Perry wrote:
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!
ja*********@cox.net

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.