Problem of * in the edit box

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
shankarrajAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
zzynxConnect With a Mentor Software engineerCommented:
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
 
shankarrajAuthor Commented:
Hi zzynx,

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

regds
shankarraj
0
 
CriusCommented:
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
 
mblatCommented:
Othewise you have overwrite ONINITDIALOG and reset that field manually....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.