void TxtNewPassword_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { TxtConfirmPassword.Focus(); } }
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; } }
private void ImgShowConfirmPassword_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e) { TxtVisibleConfirmPassword.Visibility = Visibility.Hidden; TxtConfirmPassword.Visibility = Visibility.Visible; TxtConfirmPassword.Focus(); }
private void ImgShowConfirmPassword_PreviewMouseUp(object sender, MouseButtonEventArgs e) { TxtVisibleConfirmPassword.Visibility = Visibility.Hidden; TxtConfirmPassword.Visibility = Visibility.Visible; TxtConfirmPassword.Focus(); }