Link to home
Start Free TrialLog in
Avatar of smurff
smurff

asked on

App without a form

How can I have application without a form? Ive tried coding the form to ShowWindow(Application.Handle, SW_HIDE) but I would prefer it to not have a form at all. Also can I still include components with my app as I would not be able to drop the component on the form? Thanks for any help.
Regards
Smurff
Avatar of simonet
simonet
Flag of Brazil image

Just the all the forms from the project, and do all the work in the Project source (the .DPR file).

You can still instatiate objects and component, but keep in mind that now you have to do it manually... and remember to free them.

Alex
Avatar of raidos
raidos

Sure you can have an application without forms.

But then you will have to init every Component yourself.

If you can live with the fast that there are forms in the Exe just put this line in the projects source.

Application.ShowMainform := False;


Good Luck

//raidos
Hi,
Just try create the components
in run-time.
Avatar of smurff

ASKER

cheers, can anyone give an example of a program with just the dpr and how would I initiate the components in runtime?
Thanks again
ASKER CERTIFIED SOLUTION
Avatar of zwarte
zwarte
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smurff

ASKER

Raidos: your answer with the showmainform was top thanks, but zwart explained alot. Thanks, once again Ive been helped out within a day. Cheers all!!