Professional Documents
Culture Documents
// después de InitializeComponents.
//---------------------------------------------------------
/*
TXTUSUARIO.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(TXTUSUARIO_KeyPress);
*/
//---------------------------------------------------------
}else{
try{
abrir();
cmd.CommandType = 4;
cmd.Parameters.AddWithValue("@Usu", usu);
cmd.Parameters.AddWithValue("@Contra", cont);
cmd.ExecuteNonQuery();
usuario = TXTUSUARIO.Text;
MsgBox(msj, vbInformation);
TXTCLAVE.Clear();
TXTUSUARIO.Focus();
}else{
this.Hide();
f.ShowDialog();
}catch(Exception ex){MsgBox(ex.Message);
conexion.Close();
this.Close();
if( Char.IsDigit(e.KeyChar) ){
e.Handled = false;
e.Handled = false;
}else{
e.Handled = true;
if( Char.IsLetter(e.KeyChar) ){
e.Handled = false;
e.Handled = false;
}else{
e.Handled = true;