Home > C# > C# Show Desktop

C# Show Desktop

Using C# we can write code to Show Desktop. Same effect as clicking on “Show Desktop” icon on Taskbar.

  1. Add reference to “Microsoft Shell Controls And Automation” from COM tab of “Add Reference” dialog
  2. Use following code
Shell32.ShellClass shell = new Shell32.ShellClass();
shell.MinimizeAll();
Advertisements
Categories: C#
  1. Gurleen
    May 5, 2012 at 11:29 AM

    helped me alot πŸ™‚
    thanx…

    • A.m.a.L Hashim
      July 2, 2012 at 8:11 PM

      Good to hear that πŸ™‚

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: