Solved

The * in the InputBox

Posted on 1998-09-04
5
290 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
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 70 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

919 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

15 Experts available now in Live!

Get 1:1 Help Now