Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

The * in the InputBox

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

837 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