Link to home
Start Free TrialLog in
Avatar of rose3377
rose3377

asked on

Alterring edit box

I have an edit box. The user will enter text into this box that may contain a space or tab. I need to intercept each character that is entered and display a star. So if "Microsoft Visual" is entered, I want to see only "****************".Exactly like a password. How do I do that?
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
[Not typing fast enough...]

Use the ES_PASSWORD style to display all characters in the edit control as asterisks.  You can define a different character to display by using the EM_SETPASSWORDCHAR message.
Avatar of nietod
nietod

I don't know your typing speed seems fine to me!  : - )