PasswordBox
-
Hi, all! How can I crate TextBox which would display 'circles' instead of '*' in WinXP? Currently I have TextBox with PasswordChar set to '*' because of I do not know how else I can say that this is a PasswordBox. I enabled Visual Styles through manifest but it still shows '*' Thanks. Regards, alexx.
-
Hi, all! How can I crate TextBox which would display 'circles' instead of '*' in WinXP? Currently I have TextBox with PasswordChar set to '*' because of I do not know how else I can say that this is a PasswordBox. I enabled Visual Styles through manifest but it still shows '*' Thanks. Regards, alexx.
you can use the dot character (copy and paste one of these) • ( U+0222 arial) ● ( U+25CF times new roman) or any other character in the Windows' CharactersMap (unicode section)
-
you can use the dot character (copy and paste one of these) • ( U+0222 arial) ● ( U+25CF times new roman) or any other character in the Windows' CharactersMap (unicode section)
-
Hi, all! How can I crate TextBox which would display 'circles' instead of '*' in WinXP? Currently I have TextBox with PasswordChar set to '*' because of I do not know how else I can say that this is a PasswordBox. I enabled Visual Styles through manifest but it still shows '*' Thanks. Regards, alexx.
-
Hi, all! How can I crate TextBox which would display 'circles' instead of '*' in WinXP? Currently I have TextBox with PasswordChar set to '*' because of I do not know how else I can say that this is a PasswordBox. I enabled Visual Styles through manifest but it still shows '*' Thanks. Regards, alexx.
You will have to override the
CreateParams
and OR theES_PASSWORD
(0x0020) to the Style. Read PasswordBox: A Better Way to Enter Passwords[^] for more details. :) - Nick Parker
My Blog -
You will have to override the
CreateParams
and OR theES_PASSWORD
(0x0020) to the Style. Read PasswordBox: A Better Way to Enter Passwords[^] for more details. :) - Nick Parker
My BlogA simpler way is to set the
PasswordChar
property. This re-creates the handle of theTextBox
with theES_PASSWORD
style.Microsoft MVP, Visual C# My Articles
-
Hello, Claudio! But in that case I'll got the same char in Win2k and I do not want to. Thanks. Regards, alexx
if you want to display the normal asterisk character in a Windows System < win2K you can use this:
if ((Environment.OSVersion.Version.Major >= 5) || ( (Environment.OSVersion.Platform == PlatformID.Win32NT) && (Environment.OSVersion.Version.Major == 4) )) { textBox1.PasswordChar= '•'; //or '●' }
bye