I have a small issue with my custom login dialog box (based upon your exemple).
In design time, I set the MyConnection.Server to 'localHost'
On run time , in my oncreateform event , I read registries values and in my case change the Connection.server value from 'localhost' to '192.168.1.1'.
When I'm connecting, the lcustom ogin dialog box correctly appears but the server address is still to localhost !
So, I checked the "DoInit" method :
edServer.text:= FConnectDialog.Connection.server is still set with the design time value and not the runtime value !.lbUsername.Caption := FConnectDialog.UsernameLabel;
lbPassword.Caption := FConnectDialog.PasswordLabel;
lbServer.Caption := FConnectDialog.ServerLabel;
btvalider.Caption := FConnectDialog.ConnectButton;
btannuler.Caption := FConnectDialog.CancelButton;
FConnectDialog.GetServerList(edServer.properties.Items);
edServer.text:= FConnectDialog.Connection.server ;
Is there a way to refresh the FConnectDialog.Connection object ?