Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Popup menu


'create a menu item 'mnuHiddenMenu' and set its .visible property to False
'then create sub-menu items under it with their .visible property to True

'In the MouseUp event of any control or form, place this:
If Button = vbRightButton Then PopupMenu mnuHiddenMenu