Click here to Skip to main content
15,915,770 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to show username and password has in textbox when click textbox it should disappear and accept and the name and password like admin and ****** how to do it
Posted
Comments
Varun Sareen 3-Feb-12 7:30am    
Question is not clear

 
Share this answer
 
Hi,

Its so easy to set * character to password field.
Right Click on the textbox of password,choose properties of the textbox.
You will find option of "Passwordchar" Give * in front of that option.

If problem then ask again Question.
 
Share this answer
 
Set the PasswordChar property with the character asterisk on the form load event.

VB
TextBox1.PasswordChar = "*"


or you can take the easy way and set it up from the property panel instead.

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900