Imitate Show Desktop With VB

Category:
Windows 2000/XP
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
This project gives an example of programmatically showing the desktop, or minimizing all windows. The same feature as the Show Desktop button in the Windows XP Quick Launch toolbar. It accomplishes this by creating and setting up a command file for Windows Explorer and executing it. You can email the author at nirmalbhary@yahoo.co.in.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: