CodeItBetter Programming Another VB Programming Blog

How to create a popup menu

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
'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
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
     If Button = 2 Then ' if right mouse button is pressed
        PopupMenu mnuFile  ' popup mnuFile
     End If
End Sub

Related posts:

  1. How to show a popup menu
  2. How to Create/Assign PopupMenu to a control.
  3. How to show custom popup menu in a text box
  4. How to add PopUp Menu to TreeView
  5. How to show a popup menu when the key beside the Windows key on the right side of a typical extended keyboard is pressed.
  6. How to move a Form without Title bar
  7. How to create a email link in your form
  8. How to create a screen saver.
  9. How to move a form without a title bar
  10. How to Move image with the mouse in a form

Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.