How To Create A Popup Menu .

 
 
Simple short piece of VB code which demonstrates how to create a popup menu .
 
 
  1. 'Put the following code in the form's MouseDown event

  2.  

  3. Private Sub Form_MouseDown (Button As Integer,Shift As Integer,X As Single,Y As Single)

  4.      If Button = 2 Then ' if right mouse button is pressed

  5.         PopupMenu mnuFile  ' popup mnuFile

  6.      End If

  7. End Sub
 
Copy to Clipboard      Download code as Text Format
 
  Date entered : 29th May 2007
  Rating : No Rating
  Accessed  :  1167
  Submitted by :  mobeenamjad
 
   Add Comment  Printer friendly
   View All Comments  Email to a friend
   Add to my Favourites Download PDF version
   Rating  
 
                 Click each image to add
this page to each site.
 
 
 
Comments Available

    No comment available at the moment.Be the first one to make a comment

 
Related Visual Basic Source Codes
  • Spring
  • Wraps a string to a given number of characters using a string break character
  • Uppercase the first character of each word in a string
  • Make a string's first character uppercase
  • Strip whitespace (or other characters) from the beginning and end of a string

  • Copyright © 2010 VisualBuilder. All rights reserved