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; }