Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb5 - pop up menu's

Posted on 1998-09-11
6
Medium Priority
?
383 Views
Last Modified: 2013-11-28
How do you make a pop up menu like Win95 utilizes with the right mouse click to bring it up?
0
Comment
Question by:ChrisK
  • 3
  • 3
6 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 300 total points
ID: 1434419
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
 
LVL 2

Author Comment

by:ChrisK
ID: 1434420
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
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1434421
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
Eye-catchers on the conference table

Challenge: The i-unit group was not satisfied with the audio quality during remote meetings. They were looking for a portable solution with excellent audio quality for use in their conference room but also at their client’s offices.

 
LVL 2

Author Comment

by:ChrisK
ID: 1434422
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
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1434423
Don't use the X, Y at all, it will display it automaticly in the place the mouse is
0
 
LVL 2

Author Comment

by:ChrisK
ID: 1434424
ok I got it all workin now....thanks.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A great marketing strategy is diverse.  Read about the not so popular, yet effective, marketing tactics you can start using today!
Ranking ecommerce websites is a vital process. You need to have a strong SEO (Search Engine Optimization) strategy. If you don’t have one, you are losing out on brand impressions, clicks and sales. Check this guide on how to improve website traffic …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question