Question:
How do I hide my application from the Windows Taskbar?
Answer:
It is possible to have your application running without an icon appearing in the task bar. Here's how to do this:
program Project1;
uses
Windows,
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {Form2};
{$R *.RES}
begin
Application.Initialize;
Application.ShowMainForm := False;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
ShowWindow(Application.Handle, SW_HIDE);
ShowWindow(Form1.Handle, SW_SHOWNORMAL); //Only add this if you want your form to show.
Application.Run;
end.
begin ShowWindow(Application.Handle, SW_HIDE); end.
Last Modified: 10-MAY-01