Retrieves a Menu object to handle adding, removing or changing items at runtime.
Type | Description | |||
Menu | A Menu object that contains a collection of Item objects. |
Use the Items property to access to the control's items. Use the Add property to add a new item to the menu.
The following sample shows hot to add a new separator:
PopupMenu1.Items.Add "", Separator