No reason why not.
You may have to look or change the source in the FORMS unit for TApplication
eg make MainForm a read write property.
Might have some intresting side effects ..
Can't say I have tried it, an intresting problem.
Myles.
> -----Original Message-----
> From: Alex Kouznetsov [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, June 12, 2000 3:18 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Changing main form at run-time
>
> Hi
>
> Is there any way to change main application form at run-time ?
> After Application.Run call preferably.
>
> Something like that :
> 1) run application as normal with some kind of a base main form
> 2) get some kind of user input
> 3) get rid of current main form (destroy) and create and bring up another
> one which has to behave as main form.
>
> I have tried hiding base main application form and letting the user to
> interact with secondary form as if it was an application main form.
> Unfortunately this way I get lots of little annoying problems with
> application activating, minimizing,restoring etc.
>
> Thanks
> Alex
>
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz