Click here to Skip to main content
13,045,631 members (64,596 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Is it possible to set a password character for an input box? How?
Posted 28-Feb-11 4:54am
Updated 28-Feb-11 5:06am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

AFAIK we can't.

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

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#][^]
kfsehgal 28-Feb-11 11:03am
I thought the same but no loss if we ask !!!!
Thanks anyway.....
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:
thatraja 28-Feb-11 11:24am
/*I set the property to password type and it's done.*/
But you can't set that for input box because it's just a run-time window(you can give only input message, default text in that textbox). That's the thing.

/*Looks like I have not! :doh:*/
For me too, it's been long time used in VB 6. :-)
Sandeep Mewara 28-Feb-11 11:26am
Looks like yesterdays match hangover! bye!
thatraja 28-Feb-11 11:50am
not that much...BTW why bye quickly? tired? come to GIT :-)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 28 Feb 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100