Home All Groups Group Topic Archive Search About

Obscure Text in Textbox

Author
18 May 2006 3:42 AM
Bernie Hunt
I have a login dialog that has a text box on it for the user to type their
password. How can I obscure the information they are entering into the
password box? I could blank it, but a more traditional blips or asterics
would give the user better feedback. Is there a build in way to do this, or
should I capture the caractors as they come in and replace them with blobs?

Bernie

Author
18 May 2006 4:44 AM
Cor Ligthert [MVP]
Bernie,

The textbox has a property passwordchar

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconcreatingpasswordtextbox.asp

I hope this helps,

Cor

Show quoteHide quote
"Bernie Hunt" <bh***@optonline.net> schreef in bericht
news:Xns97C6F10FE3AE5bhuntoptonlinenet@207.46.248.16...
>I have a login dialog that has a text box on it for the user to type their
> password. How can I obscure the information they are entering into the
> password box? I could blank it, but a more traditional blips or asterics
> would give the user better feedback. Is there a build in way to do this,
> or
> should I capture the caractors as they come in and replace them with
> blobs?
>
> Bernie
Author
18 May 2006 5:31 AM
Bernie Hunt
Cor,

You are the man! If I ever get to your neck of the world, I'm going to have
to buy you a whole bar worth of drinks to make up for your help! If you
make it to NYC, I can at least by you a couple at NYC prices, hahahaha.

Bernie


Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in
news:Otwg4VjeGHA.1208@TK2MSFTNGP02.phx.gbl:

> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/
> html/vbconcreatingpasswordtextbox.asp
Author
18 May 2006 10:13 AM
Herfried K. Wagner [MVP]
"Bernie Hunt" <bh***@optonline.net> schrieb:
>I have a login dialog that has a text box on it for the user to type their
> password. How can I obscure the information they are entering into the
> password box? I could blank it, but a more traditional blips or asterics
> would give the user better feedback. Is there a build in way to do this,
> or
> should I capture the caractors as they come in and replace them with
> blobs?

See properties 'PasswordChar' (.NET 1.*, .NET 2.0) and
'UseSystemPasswordChar' (.NET 2.0).

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>