?
Solved

SIMPLE!!

Posted on 1998-12-10
2
Medium Priority
?
142 Views
Last Modified: 2010-05-03
I want to be able to click a button and have a menu header display the options below it. For example, click a command button (not the menu header itself) and the options within the FILE menu header be displayed (NEW, OPEN, SAVE, etc.). This sounds like a simple command request, but I've tried repeatedly to no avail. Any suggestions??
0
Comment
Question by:KeithAtWork
2 Comments
 
LVL 1

Accepted Solution

by:
TDragon earned 200 total points
ID: 1449373
Use the SendKeys command as follows...

Private Sub Command1_Click()
    SendKeys "%F", True
End Sub

Of course this requires the Keyboard access key of 'F' for your File Menu.
0
 

Author Comment

by:KeithAtWork
ID: 1449374
Thanks, it worked fine.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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
Course of the Month14 days, 14 hours left to enroll

839 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