smurff
asked on
App without a form
How can I have application without a form? Ive tried coding the form to ShowWindow(Application.Han dle, 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
Regards
Smurff
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
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.
Just try create the components
in run-time.
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
Thanks again
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!!
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