Type | Description | |||
Icon as Variant | A long expression that indicates the icon's handle. | |||
Index as Variant | A long expression that indicates the index where icon is inserted. |
Return | Description | |||
Long | A long expression that indicates the index of the icon in the images collection |
The following VB sample adds a new icon to control's images list:
i = ExSlider1.ReplaceIcon( LoadPicture("d:\icons\help.ico").Handle), i specifies the index where the icon is added
The following VB sample replaces an icon into control's images list::
i = ExSlider1.ReplaceIcon( LoadPicture("d:\icons\help.ico").Handle, 0), i is zero, so the first icon is replaced.
The following VB sample removes an icon from control's images list:
ExSlider1.ReplaceIcon 0, i, i specifies the index of icon removed.
The following VB clears the control's icons collection:
ExSlider1.ReplaceIcon 0, -1