property ExContextMenu.Items as Items
Retrieves the control's Items collection.

TypeDescription
Items An Items object that holds a collection of Item objects.
The Items property gives access to the control's Items collection, so you can add, remove or update the items being shown in the context menu. The Add method adds a new item to the Items collection. The ToString property loads or saves the control items from a string. The Remove method removes a specified item. The Select property shows the context menu, and waits for the user to make the selection.

The following VB sample loads three items ( Item A, Item B and Item C ) from a string and displays the context menu:

Set contextMenu = CreateObject("Exontrol.ContextMenu")
With contextMenu
    .Items.ToString = "Item A,Item B,Item C"
    iSelect = .Select()
    If (iSelect <> 0) Then
       Debug.Print (.Items.Item(iSelect).Caption)
    End If
End With

The Item property accesses an Item object giving its identifier or caption.