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