473,473 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to set the description of user control's property

Hi, everyone.
I am writting an user control. There has some properties on it. At the
design time, the properties will disply on the property windows and user
could change it's value after selected the property item. My problem is when
someone select the property item on the property window. There has no
description about the user control property at the bottom of property window.
It just show the property name on it.
I think it must through some attribute to set description of the
property. Is that true? How can I set the user control property's description
when I writting the user control?
And sometimes control has it's owen property page (or property window)
at the design time. How can I do for that?
Thanks!

Steven.Xu
10.2004
Nov 16 '05 #1
1 11071
You need to add a Description attribute on your properties

[Description("My Description")]
public int MyIntProperty
{
get {..}
set {..}
}

This is a great design time article:

http://www.awprofessional.com/articl...y.asp?p=169528

"Steven.Xu" <St******@discussions.microsoft.com> wrote in message
news:43**********************************@microsof t.com...
Hi, everyone.
I am writting an user control. There has some properties on it. At the design time, the properties will disply on the property windows and user
could change it's value after selected the property item. My problem is when someone select the property item on the property window. There has no
description about the user control property at the bottom of property window. It just show the property name on it.
I think it must through some attribute to set description of the
property. Is that true? How can I set the user control property's description when I writting the user control?
And sometimes control has it's owen property page (or property window) at the design time. How can I do for that?
Thanks!

Steven.Xu
10.2004

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sparks | last post by:
I was copying fields from one table to another. IF the var name starts with milk I change it to egg and create it in the destination table. It works fine but I want to copy the description as...
8
by: doomx | last post by:
I'm using SQL scripts to create and alter tables in my DB I want to know if it's possible to fill the description(like in the Create table UI) using these scripts. EX: CREATE TABLE(...
5
by: David N | last post by:
All, I created a control that have the following property defined: private bool autoSearch My control is compiled and created fine. But, after adding the control to my form, I noticed...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
3
by: Big Dave | last post by:
I'd like to have a description included in the tool tip (intellisense?) when I call a method from a class I wrote. Just to make sure I'm describing this correctly, I'm talking about the yellow...
4
by: louise raisbeck | last post by:
Resending this as own topic as didnt get answer from original. Would be grateful for a response from anyone that knows. Thanks. Hi there, I found your post really helpful..but i wondered if, once...
1
by: John Keenan | last post by:
I have a user control with 2 buttons on it & 1 label.... as each button is pressed, they set a member variable within the class and sets the label test. I also have a get/set property for the...
1
by: Nathan Sokalski | last post by:
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: ...
1
by: altaafhussein | last post by:
Hi, I have created a custom Server Control and I want to add a description to the properties and events that the control holds. I have looked over the Internet and came up with the following... ...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.