Results 1 to 2 of 2

Thread: Right clicks, part II

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Atlanta, GA
    Posts
    75

    Post

    Does anyone know of code examples or instructions on pop-up menus created by right clicks. A complicated way would be to create a new form to respond to mouse clicks, but I would prefer a more automated method if available. Thanks.

    Jay

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Longmont,CO
    Posts
    53

    Post

    When you create your form, you can also create menus for them. To display any menu you've created as a popup menu:

    'test for right click in mouseup event
    Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)

    if(Button = vbRightButton)then
    PopupMenu menuname
    end if

    End Sub


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