Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
Is it possible to set a password character for an input box? How?
Posted 28-Feb-11 5:54am
Edited 28-Feb-11 6:06am
Sandeep Mewara at 28-Feb-11 11:05am
Though thatraja replied, you closed the question, I am still confused on what was asked here! :doh:
Kschuler at 28-Feb-11 11:08am
Ha. You wrote "inputbox" but I read "textbox". My answer does not apply. Good question though.
Sandeep Mewara at 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 at 28-Feb-11 11:03am
I thought the same but no loss if we ask !!!!
Thanks anyway.....
thatraja at 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 at 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 at 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 at 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 at 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 at 28-Feb-11 11:26am
Looks like yesterdays match hangover! bye!
thatraja at 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
0 Sergey Alexandrovich Kryukov 460
1 OriginalGriff 220
2 Kornfeld Eliyahu Peter 210
3 DamithSL 210
4 Peter Leow 100
0 OriginalGriff 7,215
1 DamithSL 5,199
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,757
4 Kornfeld Eliyahu Peter 4,514

Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 28 Feb 2011
Copyright © CodeProject, 1999-2014
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