Article ID: 194914 - Last Review: July 14, 2004 - Revision: 3.2 How To Minimize All Windows From Visual Basic
This article was previously published under Q194914 On This PageSUMMARY
Occasionally you would like to programmatically minimize all visible
windows. Using the keybd_event API, this can easily be accomplished.
MORE INFORMATION
The trick is to mimic the keyboard events required to bring the Taskbar
popup menu and send it the letter "M" to select the "Minimize All Windows"
option. This is accomplished with three calls to the keybd_event API.
The second argument for the keybd_event call is the hardware scan code, and, in this case, you could use the value 91. However, because applications should not use the scan code, it has been left as 0. Step-by-Step Example
REFERENCES
For more information, please Search on keybd_event in either the Win32
Programmer's Reference or The Microsoft Developer Network (MSDN) Library CD-ROM.
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |





















Back to the top