programming using c#,winforms and visual studio.
0 pts.
0
Q:
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.
ASKED: Jul 29 2007  7:29 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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:

this.textBox1.Name = "textBox1";
this.textBox1.PasswordChar = '*';
Last Answered: Oct 24 2007  6:26 PM GMT by ChaosUnplugged   0 pts.
Latest Contributors: MarkWPF   15 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0