[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • 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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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