Solved

Alterring edit box

Posted on 1998-12-02
3
193 Views
Last Modified: 2010-04-02
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?
0
Comment
Question by:rose3377
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1179080
Already done for you.  Use the ES_PASSWORD style.  That is what it does!

Let me know if you have questions.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1179081
[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.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1179082
I don't know your typing speed seems fine to me!  : - )
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

856 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