0 pts.
 programming using c#,winforms and visual studio.
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.

Software/Hardware used:
ASKED: July 29, 2007  7:29 AM
UPDATED: October 24, 2007  6:26 PM

Answer Wiki:
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>
Last Wiki Answer Submitted:  October 24, 2007  6:26 pm  by  MarkWPF   15 pts.
All Answer Wiki Contributors:  MarkWPF   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _