473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Property Descriptions in Custom Components

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
4 1419
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
Hi Jason,

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

"Santi" wrote:
Hi Jason,

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

Nov 16 '05 #4
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jordan Bowness | last post by:
I make a similar post in another newsgroup, but this example is simplified somewhat. I have a component (cmpMyComponent) with 2 properties. The 1st property is a string value (Description) and...
8
by: AMDRIT | last post by:
Hello everyone, How do I access a property from another thread in VB'05? Thanks public class frmblah inherits system.windows.forms.form private mCount as integer private property Count...
13
by: Robert Bravery | last post by:
HI all, I created a property callsed closed with in a select tag for each option. The property is then assigned a value of 0 or 1. I then evaluate this property in a JS script When I do this...
1
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.