Page 1 of 1

Connect without dialog

Posted: Mon 23 Jun 2008 17:45
by tedroper
I would like to connect when I start my application. I put a MyConnection component without a dialog assigned.

I put all the properties, Username, Password, Server, Database, Port and then try to connect in the OnCreate of my Form. But I still get the Connect Dialog to appear.

Is there a way to connect directly without the Dialog?
tks,
ted

Posted: Tue 24 Jun 2008 06:10
by swierzbicki
did you set the Showdialog property to false ?

Posted: Tue 24 Jun 2008 10:59
by Dimon
You should set the TMyConnection.LoginPrompt property to False.

Posted: Tue 24 Jun 2008 18:55
by swierzbicki
did you set the Showdialog property to false ?
:oops: I guess that I was a little bit tired when I've replied !