Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hi,
Is it possible to set a password character for an input box? How?
Thanks
Furqan
Posted 28-Feb-11 4:54am
Edited 28-Feb-11 5:06am
Kschuler32.3K
v2
Comments
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
good
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.
 
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#][^]
  Permalink  
v2
Comments
kfsehgal at 28-Feb-11 11:03am
   
I thought the same but no loss if we ask !!!!
Thanks anyway.....
Furqan
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 Schatak 394
1 OriginalGriff 365
2 _Amy 115
3 Sergey Alexandrovich Kryukov 109
4 Andreas Gieriet 100
0 OriginalGriff 7,097
1 Sergey Alexandrovich Kryukov 5,623
2 Maciej Los 3,504
3 Peter Leow 3,373
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web02 | 2.8.140721.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