Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

vb5 - pop up menu's

Posted on 1998-09-11
6
Medium Priority
?
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Whoever said that “a picture is worth one thousand words” observed a fact that can dramatically affect your marketing success. Most people tend to learn visually, so many publishers commonly acknowledge the effectiveness of visual learning by using…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

688 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