?
Solved

pulling down a menu programmatically

Posted on 1998-11-04
4
Medium Priority
?
193 Views
Last Modified: 2010-04-30
Is there a way in VB5 to programmatically cause a menu to pull down (as if the user has clicked it)?  This would be helpful in giving the user some guidance on where to go next in the program (instead of just text to tell, this would show the next step)?

I can use the HiLiteMenuItem API call to highlight the menu, but it would be more dramatic to show it pulled down. Also, that API call only seems to work with top level menus.  What I would really like is to be able to pull down the top level and highlight the menu item they should click, so they learn by seeing it done.
0
Comment
Question by:mwiebe
[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
4 Comments
 
LVL 2

Expert Comment

by:Poddy
ID: 1443202
try sendkeys ... ?
0
 
LVL 2

Expert Comment

by:chrisbolt
ID: 1443203
For example:

SendKeys "%f"

Will show the File menu assuming you have f setup as the accelerator key (the caption would be &File)
0
 
LVL 4

Accepted Solution

by:
idcanada earned 600 total points
ID: 1443204

May sound simple but this is it.
Popupmenu mnuFile


0
 

Author Comment

by:mwiebe
ID: 1443205
Thanks - a typical case of trying to make something more complicated than it is.  I was assuming it would be some complicated API call instead of a nice neat from method.  I expect there is an equally easy way to make the popup be positioned in the normal menu location (the goal here is helping to teach the user where to go next), so I'll do a little more exploring in the help screens for the PopupMenu method.

Thanks again.

0

Featured Post

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.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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