Solved

Problem of   *   in the edit box

Posted on 2002-05-06
4
249 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
ID: 6991044
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
ID: 6991069
Hi zzynx,

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

regds
shankarraj
0
 
LVL 3

Expert Comment

by:Crius
ID: 6991208
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
ID: 6991384
Othewise you have overwrite ONINITDIALOG and reset that field manually....
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 67
Named range not carried over 10 63
tripleUp challenge 7 78
unix example issues 18 90
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

770 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