Results 1 to 2 of 2

Thread: newbie question on popupmenu

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Nashville, TN
    Posts
    54

    Question

    Hello all I have a form and and when the user right clicks a popupmenu appears. I have seen this question before but the person who ask it always ends up finding the solution, I can't my problem is this. Ho can I simulate the popupmenu like it is on all windows things. When the user on my program right clicks he has to select an option on the menu or left click some other place on the form, how can I make it when the user right clicks again it pulls the popupmenu at that location again. I have seen peopl said they solved it using tags? could someone help me with some code please
    thanks

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    No problem, go to the menu editor and design your popupmenu, I've called mine a because I couldn't be arsed to type more letters than that, make it invisible (if you havn't use the menu editor before get some drop down menus working first then make the one you want invisible

    then add this to your form
    Code:
    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbRightButton Then
        PopupMenu a
    End If
    End Sub
    hope this helps.

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