Export (0) Print
Expand All

ToolBar.ImageList Property

Gets or sets the collection of images available to the toolbar button controls.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member ImageList : ImageList with get, set

Property Value

Type: System.Windows.Forms.ImageList
An ImageList that contains images available to the ToolBarButton controls. The default is a null reference (Nothing in Visual Basic).

If you create an ImageList and assign it to the ImageList property, you can assign an image from the collection to the ToolBarButton controls by assigning the image's index value to the ImageIndex property of the toolbar button.

The following code example creates a ToolBar control, sets some of its common properties, and adds it to a Form. Delegates are also added to the ButtonClick and ButtonDropDown events. This example requires that a ToolBar named toolBar1 and an ImageList named imageList1 have been declared.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft