The PasswordChar method retrieves the character that is displayed in an edit control for which the PASSWORD option or ES_PASSWORD style was set.

Return value:

The character that is displayed instead of the characters contained in the edit control. If the edit control is no password field or no password character was set, an empty string is returned.


For an example, refer to PasswordChar=.