Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/articles/c-sharp-tutorials/)
-   -   TextBox Control in C# (http://www.go4expert.com/articles/textbox-control-c-sharp-t3293/)

donor 13Jan2012 11:34

Re: TextBox Control 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;
}

To create a password textbox


All times are GMT +5.5. The time now is 17:48.