private void tBoxPsw_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13)//判断回车键 { BtnOK.Focus(); } }
private void TxtPassword_KeyUp(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Enter: { SetPicCheck(FlagConnection.ConnectTrue); BtnOK.Focus(); break; } } }
private void TxtUserPassWord_KeyDown(object sender, KeyEventArgs e) { #region الانتقال الى الزر الدخول try { if (e.KeyCode == Keys.Enter && TxtUserName.Text != string.Empty) { BtnOK.Focus(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } #endregion }
public FrmChiTietLoiNhuan() { InitializeComponent(); BtnOK.Focus(); }
private void FormFinishConfirm_Load(object sender, EventArgs e) { BtnOK.Focus(); }
public FrmChiTietTonKho() { InitializeComponent(); BtnOK.Focus(); }