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; }