dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

MetroTextBox does not change UseSystemPasswordChar in runtime #96

Closed vandermjr closed 4 years ago

vandermjr commented 5 years ago

` //System Runtime

//Not work If(MetroTextBox1.UseSystemPasswordChar == true) MetroTextBox1.UseSystemPasswordChar = false;

//Work If(TextBox1.UseSystemPasswordChar == true) TextBox1.UseSystemPasswordChar = false;`

ghost commented 4 years ago

Try - In form load add

metroCheckBox1.Checked = true; metroCheckBox1.Text = "Show Password";

then add to metroCheckBox1_CheckedChanged

if (metroCheckBox1.Checked == true) metroTextBox1.UseSystemPasswordChar = true; else if (metroCheckBox1.Checked == false) metroTextBox1.UseSystemPasswordChar = false;

vandermjr commented 4 years ago

@VBHPS very good, solved. Thank you.