Changed show/hide password icon

This commit is contained in:
Sigmanor 2016-01-11 19:56:14 +02:00
parent b770d31810
commit beb487c997

View file

@ -33,12 +33,14 @@ private void pictureBox1_Click(object sender, EventArgs e)
if (textBox1.UseSystemPasswordChar == true)
{
textBox1.UseSystemPasswordChar = false;
pictureBox1.Image = Properties.Resources.eye_half;
return;
}
if (textBox1.UseSystemPasswordChar == false)
{
textBox1.UseSystemPasswordChar = true;
pictureBox1.Image = Properties.Resources.eye;
return;
}
}
@ -48,12 +50,14 @@ private void pictureBox2_Click(object sender, EventArgs e)
if (textBox2.UseSystemPasswordChar == true)
{
textBox2.UseSystemPasswordChar = false;
pictureBox2.Image = Properties.Resources.eye_half;
return;
}
if (textBox2.UseSystemPasswordChar == false)
{
textBox2.UseSystemPasswordChar = true;
pictureBox2.Image = Properties.Resources.eye;
return;
}
}