minimizing (or hiding ) other windows running apps

  • Thread starter Thread starter Smile
  • Start date Start date
S

Smile

hi

I want a program which when run, hides all the rest of the running
applications on the taskbar. or i might want to check something like -
If some application is mazimized, then minimize it or hide it or ..
something like that.

in google i found, For example, there is a program - " Hide-It " which
has a similar functionality, but the code seems to be in MFC.

I really want to develop a similar one in C#. any help is highly
appreciated... or any links or some help.

thanks in advance
skepticguy

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Smile,

Call this code, before showing your application...This will minimize all the
running applications.

//Get shell from prog ID
Type shell=Type.GetTypeFromProgID("Shell.Application");
// create object from shell type
object obj=System.Activator.CreateInstance(shell);
// invoke shell to minimize all windows.

shell.InvokeMember("MinimizeAll",System.Reflection.BindingFlags.InvokeMethod
,null,obj,null); }

Shak.
 
Back
Top