Write the RAD component that interacts with the. NET property window (1)

Source: Internet
Author: User
I. Summary:
This article will show you how to develop a RAD component that interacts with the. NET attribute window.
II. Content:
Introduction
What can the property window do?
Basic knowledge: use Attribute to customize the display of the Attribute window
Extended Attributes and string conversion: TypeConverter and attribute window
Write and display customized types
Provides an interactive property View
We can also use it
Conclusion
III. Introduction
In Visual Basic, the attribute window is a key tool for Rapid Application Development (RAD: Rapid Application Development ). In Visual Studio. NET, the attribute window provides more features to support rapid development. If you are writing components or other objects in the Visual Studio. NET development environment, you can use the features provided by the attribute window to enrich the design-time features of your components.
4. What can the attribute window do?
The previous property window version processes COM-based information and displays the internal properties of the control. The public API of a COM component is generally declared using IDL (Interface Definition Language) and has its own attributes. For example, nonbrowsable can enable the attribute window not to display it, or bindable can enable data binding for the attribute. Other display features, such as standard value list and categorized properties, require components to implement the COM interface IPerPropertyBrowsing and ICategorizedProperties .. . NET framework and attribute window provide these support in a simpler and unified manner, with more new features.
Naturally, the. NET property window continues to support functions of previous versions. It obtains type information from ITypeInfo and supports the features mentioned above. However, to use powerful new features, you must use managed code to implement components. The following lists some new features:
1. lMetadata attribute (metadata feature)
Attribute features largely determine how the attribute window interacts with your component. The feature allows component writers to conveniently control whether attributes are visible in the attribute window, how to classify them, whether they can be included in multiple selections, and whether they affect the values of other attributes. These features can be easily used.
2. lHierarchical support (inheritance supported)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.