Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleOpen the Windows Start menu
DescriptionThis example shows how to open the Windows Start menu in Visual Basic 6. It uses the keybd_event API function to press and release key 91.
KeywordsStart menu, open Start menu
CategoriesSoftware Engineering, Windows
 
The program uses the keybd_event API function to press and release key 91.
 
Private Sub Command1_Click()
Const MENU_KEYCODE = 91

    ' Press the button.
    keybd_event MENU_KEYCODE, 0, 0, 0
    DoEvents

    ' Release the button.
    keybd_event MENU_KEYCODE, 0, KEYEVENTF_KEYUP, 0
    DoEvents
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated