Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I want to get password from user via inputbox. so i want to display the input box char is display with *. how to do it.

Please help me

Thank you
Posted
Updated 30-Mar-12 9:53am
v2
Comments
Kschuler 30-Mar-12 17:24pm    
Someone voted your question a one, I gave it a five. I don't think you should be voted a one just because the answer was that it's not possible.

See this MSDN article:
http://msdn.microsoft.com/en-us/library/d3223ht2.aspx[^]
So, If you want the code
VB
textBox1.PasswordChar = "*"
 
Share this answer
 
v2
Comments
devausha 30-Mar-12 7:34am    
Thanks for your reply.
But,I want set password char with input box
Vikas_Shukla_89 30-Mar-12 7:45am    
Hmmm..... if you want to use input control of html then choose input(password) control.

hope this help..
devausha 30-Mar-12 7:51am    
I am using Windows Application Vb.net
JF2015 30-Mar-12 7:53am    
So, where is your problem with the code I mentioned?
Shahin Khorshidnia 30-Mar-12 16:11pm    
Then you should tag your question and specified that was for WinForm
Short Answer: You can't

But you can create a Custom WinForm and use a TextBox on it with passoword Char.

Look at this:
Create your own inputbox
 
Share this answer
 
v2
Comments
ProEnggSoft 1-Apr-12 13:02pm    
+5. Appropriate link.
Shahin Khorshidnia 1-Apr-12 14:47pm    
Thank you very much ProEnggSoft.

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