Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

The * in the InputBox

Posted on 1998-09-04
5
Medium Priority
?
298 Views
Last Modified: 2010-04-30
I am using an InputBox to get a text string which is a password, the only problem is that when the person is entering the password everyone can see it.  What I need to do is change the text that is displayed to a * for each character.  

Any Ideas.

Thanks, Peat.
0
Comment
Question by:peat042998
5 Comments
 
LVL 1

Expert Comment

by:Steve Groner
ID: 1433128
I would create my own form to do that.  The Inputbox is not really designed for this purpose. It is strictly for string input without masking.

Use a form, and place a textbox onto it, and change the password character to * that should od it for you.

If you need assistance doing this please let me know.
0
 

Author Comment

by:peat042998
ID: 1433129
Sorry, It has to go that way.  I have tried what you are saying and it is not what I need
0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1433130
sgroner is 100% right. InputBox is provided for the simplest input. It's not flexible, and if you need anything beyond what it provides, you have to create a window on your own. I don't see any reason why it won't look exactly like inputbox
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 140 total points
ID: 1433131
Use the OnKeyPressed event.   When the key is pressed, put the "*" in the text box and add the keypressed to a string value.


0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1433132
It can be done much easier using the PasswordChar property of the text box, just set it to *
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month21 days, 6 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question