Connect on FormCreate
Posted: Mon 24 Nov 2008 22:53
I have MainForm (Form1) with IBCCOnnection and IBCCOnnectDialog.
In TForm1.FormCreate I have code
IBCConnection1.Connect;
if IBCConnection1.connected true
then Application.Terminate;
Showmessage('Some message');
I'm starting application and canceling connectDialog form. I'm expecting 'application termination' or 'Some message', but I have nothing.
After canceling connectdialog form, program bypassing rest of FormCreate procedure.
Why? How to perform this?
regards
M.
In TForm1.FormCreate I have code
IBCConnection1.Connect;
if IBCConnection1.connected true
then Application.Terminate;
Showmessage('Some message');
I'm starting application and canceling connectDialog form. I'm expecting 'application termination' or 'Some message', but I have nothing.
After canceling connectdialog form, program bypassing rest of FormCreate procedure.
Why? How to perform this?
regards
M.