private void GridModule_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.Handled = true; PanelHeader.Focus(); } if (e.KeyCode == Keys.Tab) { e.Handled = true; BtnNew.Focus(); } }
private void ChangeMode(EOperationMode OperationMode) { base.OperationMode = OperationMode; switch (OperationMode) { case EOperationMode.UPDATE: case EOperationMode.SHOW: Clear(PanelHeader); Clear(PanelDetail); EnablePanel(PanelHeader); DisablePanel(PanelDetail); F12Enable = false; btnDisplay.Enabled = F11Enable = true; BindGridCombo(); break; } PanelHeader.Focus(); txtZip1from.Focus(); }