Board index » delphi » Hiding app from task list

Hiding app from task list

Hi guys,

I want to have my application appear hidden when it is run.  Hidden from
both the screen and the task list.  Does anyone know how to do this?

--
Craig Edgar
Managing Director
ACTCASE Pty. Ltd.

________________
www.actcase.com

 

Re:Hiding app from task list


Craig Edgar schrieb in Nachricht <7glc68$2b...@black.interact.net.au>...

Quote
>Hi guys,

>I want to have my application appear hidden when it is run.  Hidden from
>both the screen and the task list.  Does anyone know how to do this?

If you want to habe your apllication hidden from the task "bar" you can use
the following:
        Form1.Hide;
        ShowWindow(Application.handle, SW_Hide);

If you want to have it be hidden from the task "list" in task manager you'll
have to create it as a service I think.

Hth,
Matthias.

Re:Hiding app from task list


In article <7glc68$2b...@black.interact.net.au>, NOSPAMmana...@actcase.com
says...

Quote

>Hi guys,

>I want to have my application appear hidden when it is run.  Hidden from
>both the screen and the task list.  Does anyone know how to do this?

The following code should remove your app icon from the task bar and ALT-TAB:

   SetWindowLong(Application.Handle, GWL_EXSTYLE,
      GetWindowLong(Application.Handle, GWL_EXSTYLE) or
      WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);

To start your app with a hidden main form, put the following in the project
file (before the Application.Run statement):

  Application.ShowMainForm := False;

--
Christo Crause
Thermal Separations Research
University of Stellenbosch
South Africa

Other Threads