Connect without dialog

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
tedroper
Posts: 3
Joined: Tue 10 Jun 2008 21:34
Location: Folsom, CA

Connect without dialog

Post by tedroper » Mon 23 Jun 2008 17:45

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

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Tue 24 Jun 2008 06:10

did you set the Showdialog property to false ?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 24 Jun 2008 10:59

You should set the TMyConnection.LoginPrompt property to False.

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Tue 24 Jun 2008 18:55

did you set the Showdialog property to false ?
:oops: I guess that I was a little bit tired when I've replied !

Post Reply