Visual Basic Reference

ToolboxBitmap Property

See Also    Example    Applies To

Returns or sets a bitmap that will be used as the picture representation of the control in the toolbox. The size of the space for the bitmap in the toolbox is 16x15 pixels; the bitmap specified by this property will be scaled to these dimensions if necessary. The ToolboxBitmap property is read/write at the controls authoring time, and not available at the controls run time.

Remarks

Important   Do not assign an icon to the ToolboxBitmap property. Icons do not scale well to Toolbox bitmap size.

Visual Basic automatically uses the class name of the control as the tool tip text when users hover the mouse pointer over the icon in the Toolbox.

Tip   When creating bitmaps, remember that for many forms of color-blindness, colors with the same overall level of brightness will appear to be the same. You can avoid this by restricting the bitmap to white, black, and shades of gray, or by careful color selection.