Пример #1
0
 private void Login_txt_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter) //enter key press
     {
         Password_Txt.Focus();    //focusing the next txtbox after keypress
     }
 }
 private void Password_Txt_Enter(object sender, EventArgs e)
 {
     if (Password_Txt.Text != PasswordPlaceholder)
     {
         return;
     }
     Password_Txt.Focus();
     Password_Txt.Text       = string.Empty;
     Password_Txt.isPassword = true;
 }
Пример #3
0
 public void InputUserAccount(string userName, string password)
 {
     UserName_Txt.SendKeys(userName);
     Password_Txt.SendKeys(password);
 }