Returns or sets an icon to be displayed by the object.
Syntax
object.Icon [= icon]
The Icon property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
icon | The Key or Index property value of a ListImage object. |
Remarks
To set an icon for an object, an ImageList control must be populated with ListImage objects (each representing an image), and an appropriate property must be set to the ImageList control. The Icon property can then be set to the Key or Index property of a ListImage object.