Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which passwordchar shows a black dot (•) in a winforms textbox using code? [duplicate]

Possible Duplicate:
Which passwordchar shows a black dot (•) in a winforms textbox?
Unicode encoding for string literals in C++11

I want to use code to reveal the password or make it a dot like •

textBoxNewPassword.PasswordChar = (char)0149;

How can I achieve this?

like image 597
Cocoa Dev Avatar asked Jan 30 '26 16:01

Cocoa Dev


2 Answers

http://blog.billsdon.com/2011/04/dot-password-character-c/ suggests '\u25CF';

Or try copy pasting this •

like image 89
MikeB Avatar answered Feb 02 '26 06:02

MikeB


(not exactly an answer to your question, but still)

You can also use the UseSystemPasswordChar property to select the default password character of the system:

textBoxNewPassword.UseSystemPasswordChar = true;

Often mapped to the dot, and always creating a consistent user experience.

like image 30
Bart Friederichs Avatar answered Feb 02 '26 05:02

Bart Friederichs