예제 #1
0
 private void Limpiar()
 {
     IdtextBox.Clear();
     NombretextBox.Clear();
     ContrasenatextBox.Clear();
     ConfirmarContrasenatextBox.Clear();
 }
 private void Limpiar()
 {
     IdnumericUpDown.Value = 0;
     NombrestextBox.Clear();
     ApellidostextBox.Clear();
     TelefonomaskedTextBox.Clear();
     EmailtextBox.Clear();
     DirecciontextBox.Clear();
     NombreUsuariotextBox.Clear();
     ContrasenatextBox.Clear();
     ConfirmarContrasenatextBox.Clear();
     ActivocheckBox.Checked       = false;
     FotopictureBox.ImageLocation = null;
 }
 private void ContrasenatextBox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
 {
     if ((e.KeyChar >= 48 && e.KeyChar <= 57) || (e.KeyChar >= 97 && e.KeyChar <= 122) || (e.KeyChar >= 65 && e.KeyChar <= 90) || (e.KeyChar == 8) || (e.KeyChar == 127) || (e.KeyChar == 13))
     {
         e.Handled = false;
         errorProvider.Clear();
     }
     else
     {
         e.Handled = true;
         errorProvider.SetError(ContrasenatextBox, "Este campo no acepta el tipo de caracter que acaba de digitar");
     }
     if (e.KeyChar == 13)
     {
         ConfirmarContrasenatextBox.Focus();
     }
 }