Solved

Problem of   *   in the edit box

Posted on 2002-05-06
4
247 Views
Last Modified: 2013-11-20
Hi,
In a dialog based application,I have one edit box.I have enabled the password property(in styles property) during design time.While running the application,the edit box is showing * for the first time.If I have to enter my password in the editbox,I will have to delete the * and then I will have to edit the pasword.Here please tell me what to do to avoid *?

Waiting for your reply.

regards
shankarraj
0
Comment
Question by:shankarraj
4 Comments
 
LVL 37

Accepted Solution

by:
zzynx earned 50 total points
Comment Utility
Hi,

If you see "*" this simply means there's a character in that edit box.
If you want it to be empty than just make sure the corresponding CString is empty and no stars will be shown.

Of course you can also 'pre-select' the complete password and give that edit box the focus so that whenever the user starts typing, the content is automatically replaced by what he is typing.

Bye.
0
 

Author Comment

by:shankarraj
Comment Utility
Hi zzynx,

My password member variable is of type int, not CString.

regds
shankarraj
0
 
LVL 3

Expert Comment

by:Crius
Comment Utility
That * you see in your password box is probably a 0. Is your password always going to be a number? I'd suggest using a CString member variable instead of a int variable anyway for a password.
0
 
LVL 4

Expert Comment

by:mblat
Comment Utility
Othewise you have overwrite ONINITDIALOG and reset that field manually....
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

16 Experts available now in Live!

Get 1:1 Help Now