Results 1 to 9 of 9

Thread: Password through InputBox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2010
    Location
    Pakistan
    Posts
    289

    Password through InputBox

    Hi,
    I want to give password through inputbox, can i do it?
    If yes then what is the procedure. Plz help me

  2. #2
    New Member
    Join Date
    Apr 2012
    Posts
    8

    Re: Password through InputBox

    use this
    vb Code:
    1. Dim password As String
    2. password = "123456"
    3. Dim strName As String
    4. strName = InputBox("your password is :", "Password", password)

  3. #3
    Lively Member
    Join Date
    Feb 2012
    Posts
    72

    Re: Password through InputBox

    im not too sure what you are looking to do...
    but if your are looking to star (*) out a password in an input box,
    im not sure you can, if this is the question then i would just make another form and make it look like an input form, make sure you set the form StartUpPosition as centre screen (2)

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2010
    Location
    Pakistan
    Posts
    289

    Re: Password through InputBox

    @weeluke: Exactly u picked my question, i want to user (*) in inputbox because its requirement and i don't want to use textbox or create another form for this purpose

  5. #5
    Lively Member
    Join Date
    Feb 2012
    Posts
    72

    Re: Password through InputBox

    ok, from what ive read it is possible via a module
    http://www.tek-tips.com/viewthread.cfm?qid=662729
    check that out.

    honestly if it was me, id rather make a mockup form but each to their own!!
    all the best with your prog
    good luck!

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2010
    Location
    Pakistan
    Posts
    289

    Re: Password through InputBox

    You r right, but still i want to use inputbox

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Password through InputBox

    No need to go anywhere else, but right here on VBForums.

    Take a trip to our CodeBank - http://www.vbforums.com/showthread.php?t=241187

  8. #8
    New Member
    Join Date
    Apr 2012
    Posts
    3

    Re: Password through InputBox

    if you look into the textbox properties - you will see "passwordchar" - just set that to * and it will echo *'s for each input character into the textbox

  9. #9
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: Password through InputBox

    Quote Originally Posted by Hack View Post
    No need to go anywhere else, but right here on VBForums.

    Take a trip to our CodeBank - http://www.vbforums.com/showthread.php?t=241187
    Hack, I have often wondered why the user's password always has to show up in the text box as "*" characters as you type. I suppose it protects the user if someone is looking over your shoulder.

    I used to have an option button to hide the typed password with "*" characters at the user's discretion. That way if nobody was looking over your shoulder, it made it a lot easier to keyboard it. This is expecially true with longer passwords, such as those 9 characters and up in length.

    Just a suggestion.
    Doctor Ed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width