Click here to Skip to main content
15,885,874 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
Is it possible to set a password character for an input box? How?
Thanks
Furqan
Posted
Updated 28-Feb-11 5:06am
v2
Comments
Sandeep Mewara 28-Feb-11 11:05am    
Though thatraja replied, you closed the question, I am still confused on what was asked here! :doh:
Kschuler 28-Feb-11 11:08am    
Ha. You wrote "inputbox" but I read "textbox". My answer does not apply. Good question though.
Sandeep Mewara 28-Feb-11 11:26am    
I thought the same and was confused! :)

1 solution

AFAIK we can't.

So create a customized window[Panel with textbox(set password character)] for your requirement, that's all.

EDIT
-----------------------------------------------------
Hi Furqan,

I have found 2 links in VB6, if possible try that in VB.NET

Hook the standard VB Inputbox to allow maximum length, password character and numbers only parameters.[^]

InputBox with Password Characters[^]

But I recommend Customized input box(Panel/form with textbox) in VB.NET

Custom Inputbox - Create your own inputbox. [^]

InputBox [C#][^]
 
Share this answer
 
v2
Comments
Furqan Sehgal 28-Feb-11 11:03am    
I thought the same but no loss if we ask !!!!
Thanks anyway.....
Furqan
thatraja 28-Feb-11 11:06am    
/*I thought the same but no loss if we ask !!!! */
Yeah, that's really a good habit.
/*Thanks anyway..... */
You welcome man.
Sandeep Mewara 28-Feb-11 11:06am    
Since you answered it and is as per OP's expectation, please explain the question to me. Curious now. :)
thatraja 28-Feb-11 11:09am    
He want to mask the text on input box, but that's impossible(AFAIK). So I suggested the customized thing which is far better. That's it.
BTW don't you used input box? :-)....kidding sandeep.
Sandeep Mewara 28-Feb-11 11:19am    
Mask the text as in? I set the property to password type and it's done. Now?

BTW don't you used input box?
Looks like I have not! :doh:

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