programming using c#,winforms and visual studio.

pts.
Tags:
ASP
ASP.NET
C
ColdFusion
DataCenter
Dreamweaver
HTML
J2EE
Java
JavaScript
JSP
Macromedia Flash
Photoshop
Programming Languages
SQL
VB.NET
VBScript
Visual Basic
Web development
Web site design & management
XML
i cant think of what to write in this part of the code so that the password character is " * " when the user enters his/her password.pliz help private void txtPassword_TextChanged(object sender, EventArgs e) { char Password =GetStyle ("*"); txtPassword.Focus(); } i just have no idea what to write so that this particular code would work.

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you just want to make the textbox show asterisks (*) in the textbox so that the text is hidden when the user types, set the PasswordChar property to *.
That works in all versions of .net framework, and can be done in code or in the winforms designer

the code behind this approach is:

<pre>this.textBox1.Name = “textBox1”;
this.textBox1.PasswordChar = ‘*’;</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: