Paulo_Amaral

How can I bring the Desktop to the top, like pressing [Windows]+[D ]

Important: the way of minimizing all windows by calling ShowWindow (p.MainWindowHandle, SW_MINIMIZE) for each process p returned by Process.GetProcess() doesn't solve my problem, but something like to minimize all windows listed in systray would.



Re: Visual C# General Show Desktop

Timo S

Open add a reference dialog and select Com tab. There you will find some kind of Microsoft Shell ******** dll. Import it into your program and create a new instance of Shell class or something. There you will find MinimizeAll() method.. I will give you more detailed instructions if you can't figure this out. I would give you now, but I'm not using my own computer right now.. . Smile

Regards,
Timo Salomaki





Re: Visual C# General Show Desktop

Paulo_Amaral

The reference is Microsoft Sheel Controls And Automation.

I did the following:

Shell32.ShellClass shell = new Shell32.ShellClass();
shell.MinimizeAll();

Thanks!