private void dtPeriodEnd_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar != (char)Keys.Return) { return; } tslControl.Select(); tsbSearch.Select(); }
private void setCurrentButton(ToolStripButton tsb) { // set this new button to be the current button m_CurrentClickedButton = tsb; m_CurrentClickedButton.Select(); m_CurrentClickedButton.Checked = true; m_CurrentClickedButton.CheckState = CheckState.Checked; return; }
private void __refresh_toolStripButton_MouseMove(object sender, MouseEventArgs e) { ToolStripButton b = (ToolStripButton)sender; b.Select(); }