Answers for "how to make a password textbox in c#"

C#
0

how to make a password textbox in c#

private void InitializeMyControl()
{
   // Set to no text.
   textBox1.Text = "";
   // The password character is an asterisk.
   textBox1.PasswordChar = '*';
   // The control will allow no more than 14 characters.
   textBox1.MaxLength = 14;
}
Posted by: Guest on November-14-2020

Code answers related to "how to make a password textbox in c#"

C# Answers by Framework

Browse Popular Code Answers by Language