Issue when calling connect within form's oncreate event
Posted: Wed 01 Dec 2010 12:26
Hello,
Something is going wrong when calling MyConnection.Connect within the Form's OnCreate event :
Do you know how to solves this ?
Ps : I'm using the latest MyDac comps 6.0.0.2
Something is going wrong when calling MyConnection.Connect within the Form's OnCreate event :
Steps to reproduce :
Create a new VCL application
Drop a TMyConnection and a TMyConnectionDialog components
Double click on the form to generate an OnCreate Event
Fill the OnCreate Event with that :
compile and run the projectCode: Select all
Myconnection1.Connect ; If not(MyConnection1.Connected) then showmessage('Ohhh noooo');
when the connection dialog appears hit CANCEL
Actually :
No message is displayed (no more code from the Event is execude)
Expected :
Message should be displayed (all code from the Event should be execude)
Do you know how to solves this ?
Ps : I'm using the latest MyDac comps 6.0.0.2