TextBox textBox1 = new TextBox();
textBox1.MaxLength = 8;
// Assign the asterisk to be the password character.
textBox1.PasswordChar = '*';
textBox1.CharacterCasing = CharacterCasing.Lower;using this code, you can show the password as combination of * in the textbox in C#.
