Create an invisible application with Delphi

to produce an invisible application with Delphi is soo simple….

to hide the main form at application start you need to add in your project source a this code :

Application.ShowMainForm:=False;

full piece of code:

 

program Project1;

 

uses

  Forms,

  Unit1 in ‘Unit1.pas’ {Form1},

  Unit2 in ‘Unit2.pas’ {DataModule2: TDataModule},

  Unit3 in ‘Unit3.pas’ {Form3};

 

{$R *.res}

 

begin

  Application.Initialize;

  Application.ShowMainForm:=False;

  Application.CreateForm(TDataModule2, DataModule2);

  Application.CreateForm(TForm1, Form1);

  Application.Run;

end.

 

for [...]