Home
Manage Your Code
Snippet: TextBox als Passworteingabe Input (C#)
Title: TextBox als Passworteingabe Input Language: C#
Description: Zeigt an wie man eine Textbox einstellt damit man ein Element zur Passworteingabe erhält. Views: 183
Author: Frank Blau Date Added: 7/15/2008
Copy Code  
1// Set to no text.
2textBox1.Text = "";
3// The password character is an asterisk.
4textBox1.PasswordChar = '*';
5// The control will allow no more than 14 characters.
6textBox1.MaxLength = 14;
7	
8