Board index » delphi » Hiding taskbar button

Hiding taskbar button

Is it possible to hide taskbar button and (or) main form in a Delphi application? Thanks.

sti...@swing.hr

 

Re:Hiding taskbar button


Add the following to your .dpr file:

program Project1;

uses
  Forms,

  { -> Add the Windows unit }
  Windows,

  Unit1 in 'Unit1.pas' {Form1};

{$R *.RES}

begin
  Application.Initialize;

  { -> Don't show the main form }
  Application.ShowMainForm := False;
  { -> Don't show the taskbar icon }
  ShowWindow(Application.Handle, SW_HIDE);

  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

"Stipe Sumi?" <sti...@hotmail.com> schreef in bericht
news:8iacot$97i$1@as102.tel.hr...
Is it possible to hide taskbar button and (or) main form in a Delphi
application? Thanks.

sti...@swing.hr

Other Threads