void TxtNewPassword_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         TxtConfirmPassword.Focus();
     }
 }
Example #2
0
 private void TxtConfirmPassword_Validating(object sender, CancelEventArgs e)
 {
     if (TxtNewPassword.Text != TxtConfirmPassword.Text)
     {
         MessageBox.Show("Confirm Password Not Match With Password...!", "Mr Solution", MessageBoxButtons.OK, MessageBoxIcon.Information);
         e.Cancel = true;
         TxtConfirmPassword.Focus();
         return;
     }
 }
Example #3
0
 private void ImgShowConfirmPassword_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
 {
     TxtVisibleConfirmPassword.Visibility = Visibility.Hidden;
     TxtConfirmPassword.Visibility        = Visibility.Visible;
     TxtConfirmPassword.Focus();
 }
Example #4
0
 private void ImgShowConfirmPassword_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     TxtVisibleConfirmPassword.Visibility = Visibility.Hidden;
     TxtConfirmPassword.Visibility        = Visibility.Visible;
     TxtConfirmPassword.Focus();
 }