Bonjour,
J'ai un bouton qui est dédié à faire apparaitre un mot de passe ou la transformer en étoile mais j'ai pas réussi à faire ça. Aidez moi à corriger ce code SVP
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 private void button3_Click(object sender, EventArgs e) { if (textBox2.PasswordChar.ToString() == "*") { this.textBox2.PasswordChar = ' '; } else if (textBox2.PasswordChar.ToString() == "") { this.textBox2.PasswordChar = '*'; } }
Partager