Run application without focus

Posted in Forms

To run form without focus, use ShowWindow function with SW_SHOWNOACTIVATE parameter.

procedure TForm1.FormCreate(Sender: TObject);
begin
  ShowWindow(Handle, SW_SHOWNOACTIVATE);
end;