AddItemWithImage Method

Adds a new item to a ComboBox control, optionally allowing you to specify the item's index.

Syntax

Public Sub AddItemWithImage(ByVal Item As String, ByVal ImageIndex As Integer, Optional ByVal Index As Integer = -1)

Applies To

ComboBox Object

Parameters

The following parameters are available:

Parameter Description
Item Specifies the string expression to add to the control.
ImageIndex Specifies the index of the image to get from the ImageList control.
Index Specifies the position where the item is placed in the control.

Return Type

None