Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55346

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Passwordchar in Inputbox Posted by ganesh4u on 9 Feb 2005 at 2:36 AM
Hi,
I like to use inputbox for login in form.So is there any way that when user types his password in inputbox it should not Display letters insted it should Display like ***** .

Help me
Ganesh :)
Report
Re: Passwordchar in Inputbox Posted by the walrus on 9 Feb 2005 at 3:36 AM
: Hi,
: I like to use inputbox for login in form.So is there any way that when user types his password in inputbox it should not Display letters insted it should Display like ***** .
:
: Help me
: Ganesh :)
:

there is a PasswordChar property of an input box. just change the PasswordChar to "*" and only astericks will show up. you can either do this at design time in the Properties menu (which would be the best way to do it) or at run time like this:

Text1.PasswordChar = "*"

Report
Re: Passwordchar in Inputbox Posted by mhyke on 9 Feb 2005 at 7:14 AM
: : Hi,
: : I like to use inputbox for login in form.So is there any way that when user types his password in inputbox it should not Display letters insted it should Display like ***** .
: :
: : Help me
: : Ganesh :)
: :
:
: there is a PasswordChar property of an input box. just change the PasswordChar to "*" and only astericks will show up. you can either do this at design time in the Properties menu (which would be the best way to do it) or at run time like this:
:
:
: Text1.PasswordChar = "*"
: 

:

hi,,,, with regards to this concern, i know its possible to use a different character like the one being used in the login of windows xp.
do you have any ideas...

thanks mhyke
Report
Re: Passwordchar in Inputbox Posted by Mike_AB1 on 9 Feb 2005 at 2:59 PM
: : : Hi,
: : : I like to use inputbox for login in form.So is there any way that when user types his password in inputbox it should not Display letters insted it should Display like ***** .
: : :
: : : Help me
: : : Ganesh :)
: : :
: :
: : there is a PasswordChar property of an input box. just change the PasswordChar to "*" and only astericks will show up. you can either do this at design time in the Properties menu (which would be the best way to do it) or at run time like this:
: :
: :
: : Text1.PasswordChar = "*"
: : 

: :
:
: hi,,,, with regards to this concern, i know its possible to use a different character like the one being used in the login of windows xp.
: do you have any ideas...
:
: thanks mhyke
:


Try this on form load:

Text1.FontName = "courier new"
Text1.FontSize = 12
Text1.FontBold = True
Text1.PasswordChar = Chr(149)
Mike





Report
Re: Passwordchar in Inputbox Posted by ganesh4u on 9 Feb 2005 at 11:44 PM
Hi,
i am not using textbox.I am using Inputbox() so suggest me proper ways
Ganesh :)

Report
Re: Passwordchar in Inputbox Posted by the walrus on 10 Feb 2005 at 12:01 AM
: Hi,
: i am not using textbox.I am using Inputbox() so suggest me proper ways
: Ganesh :)
:
:

oh, sorry, you can't do it in an inputbox. use a textbox. it's not that much work to set up a form with a textbox and a few buttons
Report
Re: Passwordchar in Inputbox Posted by ganesh4u on 10 Feb 2005 at 9:00 PM
Thanks,
I know that but i think it's possible.Only thing we have to write our own logics.
Ganesh :)




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.