Exemplo n.º 1
0
 private void TxtUserPassword_Validating(object sender, CancelEventArgs e)
 {
     if (_Tag == "" || this.ActiveControl == TxtUserPassword)
     {
         return;
     }
     if (string.IsNullOrEmpty(TxtUserPassword.Text))
     {
         MessageBox.Show("Password Cannot Left Blank...!", "Mr Solution", MessageBoxButtons.OK, MessageBoxIcon.Information);
         e.Cancel = true;
         TxtUserPassword.Focus();
         return;
     }
 }
Exemplo n.º 2
0
 private void TxtUserPassword_Validating(object sender, CancelEventArgs e)
 {
     if (string.IsNullOrEmpty(TxtUserPassword.Text))
     {
         MessageBox.Show("User Password Cannot Left Blank...!", "Mr Solution", MessageBoxButtons.OK, MessageBoxIcon.Information);
         e.Cancel = true;
         TxtUserPassword.Focus();
         return;
     }
     else if (TxtUserPassword.TextLength < 6)
     {
         MessageBox.Show("User Password Must be six character...!", "Mr Solution", MessageBoxButtons.OK, MessageBoxIcon.Information);
         e.Cancel = true;
         TxtUserPassword.Focus();
         return;
     }
 }
Exemplo n.º 3
0
 private void ImgShowPassword_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
 {
     TxtVisibleUserPassword.Visibility = Visibility.Hidden;
     TxtUserPassword.Visibility        = Visibility.Visible;
     TxtUserPassword.Focus();
 }
Exemplo n.º 4
0
 private void ImgShowPassword_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     TxtVisibleUserPassword.Visibility = Visibility.Hidden;
     TxtUserPassword.Visibility        = Visibility.Visible;
     TxtUserPassword.Focus();
 }