To create a popup menu, create it as any other menu using the menu editor. Make sure it starts as a top level menu and set its visible property to false (uncheck it).
In your code on the mouseup event of the form and/or control place the following code.
'// Show the popup menu.
If Button = vbRightButton Then Form1.PopupMenu mnuPopup
mnuPopup is the name given to the topmost level of the menu that you want as the popup menu. You also don't have to create a separate menu, you can use an exiting one like the the 'File' menu.
Thanks and Good Luck!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.