Hello Hareth,
I don't think the assignment:
textBox1.Text = textBox1.Text;
will work because it detects that it is the same and will not actually reset the text to the same value.
You could possibly try this:
textBox1.PasswordChar = '*'
string tmp = textBox1.Text;
textBox1.Clear();
textBox1.Text = tmp;
This seems like such a hack but I don't know of any other way right now.
HTH
Wes Haggard
http://weblogs.asp.net/whaggard/ It did not work
"Robert Misiak" <rm*****@users.cutthispartout.sourceforge.net> wrote
in message
news:hy****************@newsread1.news.pas.earthli nk.net...
You need to reset the text in the TextBox after assigning
PasswordChar:
textBox1.PasswordChar = '*';
textBox1.Text = textBox1.Text;
HTH,
Robert