472,989 Members | 2,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 11042
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.