property PopupMenu.Items as Menu

Retrieves a Menu object to handle adding, removing or changing items at runtime.

   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

Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.