ToolboxBitmapAttribute Class
You can apply a ToolboxBitmapAttribute to a control so that containers, such as Microsoft Visual Studio Form Designer, can retrieve an icon that represents the control. The bitmap for the icon can be in a file by itself or embedded in the assembly that contains the control.
The size of the bitmap that you embed in the control's assembly (or store in a separate file) should be 16 by 16. The GetImage method of a ToolboxBitmapAttribute object can return the small 16 by 16 image or a large 32 by 32 image that it creates by scaling the small image.
For a list of all members of this type, see ToolboxBitmapAttribute Members.
System.Object
System.Attribute
System.Drawing.ToolboxBitmapAttribute
[Visual Basic] <AttributeUsage(AttributeTargets.Class)> Public Class ToolboxBitmapAttribute Inherits Attribute [C#] [AttributeUsage(AttributeTargets.Class)] public class ToolboxBitmapAttribute : Attribute [C++] [AttributeUsage(AttributeTargets::Class)] public __gc class ToolboxBitmapAttribute : public Attribute [JScript] public AttributeUsage(AttributeTargets.Class) class ToolboxBitmapAttribute extends Attribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Requirements
Namespace: System.Drawing
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Drawing (in System.Drawing.dll)