Design-Time Attributes of Custom Controls
page 4 of 6
by . .
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 28848/ 40

Altering the properties

Altering the properties

Because this is a very simple overview I'll just do a couple of the properties, but you will quickly get the idea.

There are a variety of attributes that are available for you to use for your properties (since attributes in VS.NET are mainly only for properties and events) and the most common are summarized in the following table -

Attribute  Description
BrowsableAttribute Specifies weather the property or event is displayed in the property window or not.
CategoryAttribute Specifies the category to put the property or event under (can be an existing or a new category).
DescriptionAttribute Specifies the description text for the property or event.
DefaultPropertyAttribute Specifies the default property that is selected in the property window when the control is selected. You set this attribute for the class, not the property.

There are many other attributes that you can use which you can see here.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-28 8:08:11 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search