Board index » delphi » How To Kill Form From OnCreate?

How To Kill Form From OnCreate?

In FormCreate i call the Logon window, then if need go on working.
How can i correctly close MainForm from FormCreate?
Form.Close, .Free, .Release are not working...

mailto:the_Ari...@chat.ru

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
..Should we shout ? Should we Scream ?
   What happenned to the post-War dream ?    

 ...With all the best wishes - Arioch /BDV/  mailto:the_Ari...@chat.ru

 

Re:How To Kill Form From OnCreate?


Assuming you want to cancel the program after a bad login attempt, use
either Application.Terminate or Halt.  I use Halt in this situation to avoid
the form flicker that occurs with Terminate.

Tim

Quote
the_Ari...@mtu-net.ru wrote in message <1103_900612463@izvr>...
>In FormCreate i call the Logon window, then if need go on working.
>How can i correctly close MainForm from FormCreate?
>Form.Close, .Free, .Release are not working...

Other Threads