Solved

vb5 - pop up menu's

Posted on 1998-09-11
6
355 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 100 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

809 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