|
-
Apr 26th, 2000, 03:37 AM
#1
Thread Starter
Member
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
-
Apr 26th, 2000, 03:46 AM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|