[Toolboxbitmap (typeof (myopaquelayer)] [category ("myopaquelayer"), description ("

Source: Internet
Author: User
These two attributes are used for custom controls, which are generally placed before the class of custom controls. [Toolboxbitmap (typeof (myopaquelayer)] specifies the icon displayed in the toolbar when you add a custom control to the toolbar. The correct syntax is [toolboxbitmap (typeof (xxxxcontrol), "xxx.bmp")] Where xxxxcontrol is your custom control and "xxx.bmp" is the name of the icon you want to use. For specific settings, search for toolboxbitmap in Baidu. You should be able to find more detailed answers. [Category ("myopaquelayer"), description ("whether transparent, true by default")] This is simpler. It is generally used to describe the properties of your custom control ). Category is used to indicate the category of the attribute. description is the meaning of the attribute. After setting these settings, you can drag a custom control to the design interface and view the Properties window.
Related Article

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.