Click to See Complete Forum and Search --> : How to display *** in Edit box?


dearphael
April 11th, 1999, 02:44 AM
Hi,

for my application, i need to ask the user for password input. i read that we can create CEdit object with the ES_PASSWORD style. but i am using ResourceView to create my dialog box with Edit boxes and i know how to assign a CEdit object to that Edit box, but how do i modify the style of this Edit box so that it has the ES_PASSWORD style so that only ****** will be displayed when the user types in the password?

Gamble
April 11th, 1999, 03:56 AM
Just bring up the properties dialog on your edit box, switch to the 'Styles' tab, and check the 'Password' option. That should make it do what you want.

dearphael
April 11th, 1999, 11:44 PM
Thank you very much for your help. Without you, I would have had to go through all the code to try to implement it. Thanks!!