Exemplo n.º 1
0
 private void PW_Enter(object sender, EventArgs e)
 {
     if ((PW.Text != "" && PW.Text != "Password"))
     {
         PW.UseSystemPasswordChar = true;
         PW.Clear();
         PW.ForeColor = Color.Black;
     }
 }
Exemplo n.º 2
0
 private void PW_Click_1(object sender, EventArgs e)
 {
     if (PW.Text == "Password")
     {
         PW.Clear();
         PW.ForeColor = Color.Black;
     }
     // if (PW.Text == "Password")
     //PW.UseSystemPasswordChar = false;
     //else PW.UseSystemPasswordChar = true;
 }