Results 1 to 5 of 5

Thread: ***----Right Click Menu in VB---****

  1. #1

    Thread Starter
    Lively Member mykg4orce's Avatar
    Join Date
    Oct 2000
    Location
    CANADA
    Posts
    92

    Exclamation

    Is there a right click menu component in vb that can be dragged on to the form, if not how could this effect be created thanks a lot

    thanks to the guys yesterday......


  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    do you mean how to create a popup menu?
    If so, the code is simple:
    Code:
       PopupMenu menuName
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Lively Member mykg4orce's Avatar
    Join Date
    Oct 2000
    Location
    CANADA
    Posts
    92

    Exclamation A RIGHT CLICK MENU.....

    no i mean when you right click on the desktop a menu opens up besides the cursor, how can this be done in vb

    ask me if you need any more clarification...

  4. #4
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Exclamation Uh...mykg4orce, that's what a popup menu is

    A popup menu IS a "right-click" menu. To create one, use the menu editor to create your menu. Set the visiblity to false. Code the menu like you would a regular menu. Then put this code in the form's code window to display the menu on a right click:
    Code:
    Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
        If Button = vbRightButton Then
            Me.PopupMenu RightClickMenuName
        End If
    End Sub
    ~seaweed

  5. #5

    Thread Starter
    Lively Member mykg4orce's Avatar
    Join Date
    Oct 2000
    Location
    CANADA
    Posts
    92

    thanks a lot guys

    q

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width