Disabling TpgConnectDialog
Posted: Wed 09 Nov 2011 20:23
Hello,
I have a TPgConnection. I set the properties required to connect (port, password, dbname...) But still, when i set the TPgConnection.connect property to true, it shows a default TPgConnectDialog, where all the properties are set but not the password. When I set all the properties for connection, I don't want any user interaction in the program.
How can I disable this property and prevent a connect dialog show after setting all the properties? I need a silent connection which no questions are asked.
Thank you.
I have a TPgConnection. I set the properties required to connect (port, password, dbname...) But still, when i set the TPgConnection.connect property to true, it shows a default TPgConnectDialog, where all the properties are set but not the password. When I set all the properties for connection, I don't want any user interaction in the program.
How can I disable this property and prevent a connect dialog show after setting all the properties? I need a silent connection which no questions are asked.
Thank you.