private void CurrentPasswordTB_Leave(object sender, EventArgs e) { CurrentPasswordTB.AddText(CurrentPasswordTBPlaceholder); if (String.IsNullOrWhiteSpace(CurrentPasswordTB.Text) || CurrentPasswordTB.Text == CurrentPasswordTBPlaceholder) { CurrentPasswordTB.PasswordChar = '\0'; } }
private void CurrentPasswordTB_Enter(object sender, EventArgs e) { CurrentPasswordTB.RemoveText(CurrentPasswordTBPlaceholder); CurrentPasswordTB.PasswordChar = '●'; }