//serverTbx-->databaseTbx private void ServerTbx_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { DatabaseTbx.Focus(); } }
//usernameTbx-->databaseTbx private void UserNameTbx_KeyUp(object sender, KeyEventArgs e) { if (e.KeyValue == 38) { DatabaseTbx.Focus(); } }
//serverTbx-->databaseTbx private void ServerTbx_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 40) { DatabaseTbx.Focus(); } }
//databaseTbx-->loginBtn private void DatabaseTbx_KeyDown(object sender, KeyEventArgs e) { if (flag == 0) { if (e.KeyValue == 40) { DatabaseTbx.Focus(); } } else { if (e.KeyValue == 40) { UserNameTbx.Focus(); } } }