Click here to Skip to main content
15,911,039 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello sir,
i had created textbox for both Username & password in windows form.But i had created a user name and password in database.But after executing the form,in the textbox the password entered is visible.I dont want the password to be visible .It should be seen in star view..I wnat this to be done in<b> windows form only</b>.
plz do help,need urgent.

Thanks & Reagrds
Pradeep CB
Posted

Try this
Textbox=>properties=>PasswordChar=*
 
Share this answer
 
Comments
Pradeep CBZ 6-Mar-12 9:30am    
Thank you sir.
Shahin Khorshidnia 12-Mar-12 8:12am    
When the answer help and you say "thanks... that's it ...." and you upvote it, then it's better to accept the answer. (Green button)
On your form in design view, select your password textbox.

In the properties grid, find the property "PasswordChar" and put in the asterisk (*) there.
 
Share this answer
 
Comments
Pradeep CBZ 6-Mar-12 9:30am    
Thank you sir.
Set UseSystemPasswordChar to true on the TextBox.
 
Share this answer
 
Try setting "PasswordChar" property of the textbox to "*"
 
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