Hi,

I have a little problem with Edit control, I have one edit control for the user to enter one password, so I have:
****

And I want that when the user set the focus to that edit control and writes the first letter the edit control deletes its content and shows only the letter that the user has entered with the keyboard, I have tried somethings, but don't works, here is what I tried:

-> OnSetFocus, SetSel all the string ->But don't works, I don't know why... ( this is the ideal thing, but I don't know how to make it work)

-> When the user presses ( on change edit) the first time, I try to find de different character, and I delete the string and put the character ( the problem is that not always I'm able to know what character is the new), and another problem is that put the character, but the cursor is not in the end of the edit control, so the if the user wants to write fast ( "ABC"), it will do "BCA").

... Anybody can help me ? Thanks, Bye !
Braulio