Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password char.

Status
Not open for further replies.

VB4Life

Programmer
Nov 8, 2008
50
US
Hi all, I have a textbox and I have set the UseSystemPasswordChar to True and it still shows the text, am I missing something simple? I can use the PasswordChar to a special char like * but that's not what I want. Thanks.
{VB.Net 2008 Express on Vista}
 
If the PasswordChar property is empty then it shows the exact data.

The UseSystemPasswordChar property overrides your selection (PasswordChar) -doesnt matter if it is empty- and uses the character that is provided by the operating system. [XP uses the bullet]
 
Yes I have seen the bullets in XP, but why won't it display them in Vista? Like before even when I have the useSystemPasswordChar to True I still get the data??? Whether I use a char in PasswordChar or not.
 
It must be a bug, if I use txtPW.PasswordChar = Chr(149) it works fine.
 
Maybe not a bug.
The PasswordChar needs a char. In VB there are double quotes. Even one characted is treated like a string.

txtPW.PasswordChar = Convert.ToChar(149)
 
I not talking about the bug being with PasswordChar it is with UseSystemPasswordChar not able to do this in Vista.
 
VB4Life,

You can place an "*" or Bullet in the PasswordChar property. I just created a Login form in VB. When the user types a UserName or Password in the textboxes, an "*" will show for each letter or number.

Try looking at Beth Massi's Video at:
agooddatamgr
 
agooddatamgr, thank for replying, but I am well aware of that. I am not a noob, just found something that is not working as it should. If you read my posts you will see I already said what you said, but I don't want an "*". Anyway the problem is resolved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top