How can I unmask password text box and mask it back to password?

Just set the property to ‘\0’ (which is the default value) to not mask characters.

Source: http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.passwordchar.aspx

Note: notice that ‘\0’ is different from ‘0’. The first one is the null character, white ‘0’ is the character that will be displayed as 0.

Leave a Comment