-1

In the properties section I changed the passwordChar, but i want to change the passwordChar to nothing.

Something like this:

private void passwordG_MouseHover(object sender, EventArgs e)
{
    passwordG.PasswordChar = none;
}
Nic Foster
  • 2,777
  • 1
  • 25
  • 45
ron cohen
  • 217
  • 1
  • 3
  • 9

1 Answers1

3

if you mean you want to change it back to nothing. then we have char \0

private void passwordG_MouseHover(object sender, EventArgs e)
{
    passwordG.PasswordChar = '\0';
}

set char to null or the equivalent of zero

M.kazem Akhgary
  • 17,601
  • 7
  • 53
  • 108