Click to See Complete Forum and Search --> : Borland C++-Builder issue... any C++-Builder users here ?


AlionSolutions
November 7th, 2002, 09:00 AM
Hi,
I have a problem which is special for C++-Builder. It is about hiding the mainform of an application at startup-
found a few solutions but they didn't work.

Is there a C++-Builder-User out there who might help me ?

Thanx in advance

Juergen

zdf
November 7th, 2002, 10:35 AM
I’m not using BC++. I am using Delphi 5. Since the VCL is the same the code below should work in BC++ too (of course, you should translate it to C++).

program Project1;

uses
Forms,
Unit1 in 'Unit1.pas' {Form1};

{$R *.RES}

begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.ShowMainForm := false; // Determines whether the application shows its main form on startup.
Application.Run;
end.

Regards,