Topic: How To Remove Save Password ☑

How To Edit Script  Remove 

Save Password ☑

Stat Dialog connect MySQL

or
Save Password Visible := False ?

https://i.ibb.co/ZfRYc8x/D20250116-T144005.png

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How To Remove Save Password ☑

Hi,


In the final section of the script (begin end.) add after "begin":


begin
  {$MySQL disable_connectdialog}
  frmMySQLLogin.chbSavePassword.Visible := False;  // Make invisible
  frmMySQLLogin.chbSavePassword.Checked := False;  // If necessary, uncheck/check the password saving box.
  frmMySQLLogin.ShowModal;
...
end.

In the OnShow event of your main form, add after "begin":

  try
    MainFrm.MySQLConnection.Connect;
  except
    ShowMessage('Dont connect');
    MainFrm.Close;
  end;

  if MainFrm.MySQLConnection.Connected then
  begin
    UpdateDatabase(''); // Required
  end;
...

Re: How To Remove Save Password ☑

Decided to add another solution.
It is undocumented.

By default, the login window for the database is triggered before the script is executed. The previous solution was related to this. This solution allows you to execute part of the script and then call the login window. The solution is undocumented. Like the previous solution, place it in the (begin end.) section immediately after begin. Try it, test it...


  
begin
  {$MySQL run_script_before_connect}
  frmMySQLLogin.chbSavePassword.Visible := False;
  frmMySQLLogin.chbSavePassword.Checked := False;
...
end.

Re: How To Remove Save Password ☑

It is lowdocumented smile

https://myvisualdatabase.com/forum/view … 367#p33367


I admit, I had never read about them until now..

sparrow wrote:

Decided to add another solution.
It is undocumented.

By default, the login window for the database is triggered before the script is executed. The previous solution was related to this. This solution allows you to execute part of the script and then call the login window. The solution is undocumented. Like the previous solution, place it in the (begin end.) section immediately after begin. Try it, test it...


  
begin
  {$MySQL run_script_before_connect}
  frmMySQLLogin.chbSavePassword.Visible := False;
  frmMySQLLogin.chbSavePassword.Checked := False;
...
end.
Визуальное программирование: блог и телеграм-канал.