• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

vb5 - pop up menu's

How do you make a pop up menu like Win95 utilizes with the right mouse click to bring it up?
0
ChrisK
Asked:
ChrisK
  • 3
  • 3
1 Solution
 
MikeP090797Commented:
To make a popup menu, use PopupMenu mnuName
where mnuName is a menu name you want to bring up
You can put that in _MouseDown even if you want to simulate Win95 behavior
0
 
ChrisKAuthor Commented:
ok but it says object required....I thought this was something built in?!  Am I suppost to make another form to act as the menu?  If so what the hell is the purpose of popupmenu when all ya need is formx.visible = true and coordinates!  So please be a little more specific and show some code.
0
 
MikeP090797Commented:
The object is the form on which you display the popupmenu, like when the user right clicks on Form1, you put Form1.PopupMenu mnuMyMenu, X, Y
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
ChrisKAuthor Commented:
Ok....I got it to work after playin around with it a bit...but the menu isn't popping up where my mouse is at, it's almost random and I'm using the X, Y from the form mousedown!  So how do I fix that?
0
 
MikeP090797Commented:
Don't use the X, Y at all, it will display it automaticly in the place the mouse is
0
 
ChrisKAuthor Commented:
ok I got it all workin now....thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now