Home > Net >  C # how to display the password box *
C # how to display the password box *

Time:09-18

[code=csharp] [/code ]
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/false

CodePudding user response:

Password, click on the display the text frame's UseSystemPasswordChar set to false

CodePudding user response:


PasswordChar="\ 0"

CodePudding user response:

Correct the PasswordChar='\ 0';

CodePudding user response:

Attribute is not you directly
  •  Tags:  
  • C#
  • Related