Exemple #1
0
 private void txtContrasena_KeyPress(object sender, KeyPressEventArgs e)
 {
     if ((int)e.KeyChar == (int)Keys.Enter)
     {
         BtnIngresar.PerformClick();
     }
 }
Exemple #2
0
 private void Login_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnIngresar.PerformClick();
         e.SuppressKeyPress = true;
     }
 }
Exemple #3
0
 private void login_Load(object sender, EventArgs e)
 {
     BtnIngresar.Focus();
 }
Exemple #4
0
 public LoginPage ClickIngresar()
 {
     BtnIngresar.Click();
     Console.WriteLine("Click ingresar.");
     return(this);
 }