Add Method Example

This example shows how to add a ComboItem using the Add method, and use the reference returned to change the properties of the new object.

Dim ci As ComboItem

Set ci = ImageCombo1.ComboItems. _
Add(1, "Signal1", "Signal", "RedLight", "GreenLight", 0)

ci.ToolTipText = "Traffic Light"
ci.Indentation = 2