procedure TForm1.CheckBox1Click(Sender: TObject); begin if(CheckBox1.Checked) then Edit1.PasswordChar := #42 else Edit1.PasswordChar := #0; end;