Solved

The * in the InputBox

Posted on 1998-09-04
5
288 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:sgroner
Comment Utility
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
Comment Utility
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
Comment Utility
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 70 total points
Comment Utility
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
Comment Utility
It can be done much easier using the PasswordChar property of the text box, just set it to *
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now