That show the password in c # VS how do operation, I have a password to hide, just don't know how to show
CodePudding user response:
How do you make password *?The operation,
CodePudding user response:
Public _click ()
{
InitializeComponent ();
TextBox input_pasword=new TextBox () {Size=new Size (90, 25), the Location=new Point (10, 10), PasswordChar='*',};
This. Controls. The Add (input_pasword);
//can be a picture of what
Panel Panel=new Panel () {Size=new Size (50, 25), the Location=new Point (120, 10), BackColor=Color. The Salmon};
A panel. The MouseDown +=(sender, e)=& gt; {input_pasword. PasswordChar='\ 0'; };
A panel. The MouseUp +=(sender, e)=& gt; {input_pasword. PasswordChar='*'; };
This. Controls. The Add (panel);
}
CodePudding user response:
Textbox. UseSystemPasswordChar=true/falseCodePudding user response:
Password, click on the display the text frame's UseSystemPasswordChar set to falseCodePudding user response:
PasswordChar="\ 0"
CodePudding user response:
Correct the PasswordChar='\ 0';CodePudding user response:
Attribute is not you directly