'Forms - How to create a popup menu
'Simple short piece of VB code which demonstrates how to create a popup menu.
'Put the following code in the form's MouseDown event
PrivateSub Form_MouseDown(Button AsInteger, Shift AsInteger, X AsSingle, Y AsSingle)
If Button = 2 Then' if right mouse button is pressed
PopupMenu mnuFile ' popup mnuFile
EndIfEndSub