/// <summary> /// Enter key and Backspace navigation and Form Quick access /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbEmployee_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.Enter) { cmbStatus.Focus(); } if (e.KeyCode == Keys.Back) { cmbDesigantion.Focus(); } if (e.Control && e.KeyCode == Keys.F) { frmEmployeePopupObj = new frmEmployeePopup(); frmEmployeePopupObj.MdiParent = formMDI.MDIObj; if (cmbEmployee.SelectedIndex > 0) { frmEmployeePopupObj.CallFromEmployeeReport(this, Convert.ToDecimal(cmbEmployee.SelectedValue.ToString())); } } } catch (Exception ex) { MessageBox.Show("ER12" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Enter key and Backspace navigation and Form Quick access /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbEmployee_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.Enter) { cmbStatus.Focus(); } if (e.KeyCode == Keys.Back) { cmbDesigantion.Focus(); } if (e.Control && e.KeyCode == Keys.F) { frmEmployeePopupObj = new frmEmployeePopup(); frmEmployeePopupObj.MdiParent = formMDI.MDIObj; if (cmbEmployee.SelectedIndex > 0) { frmEmployeePopupObj.CallFromEmployeeReport(this, Convert.ToDecimal(cmbEmployee.SelectedValue.ToString())); } } } catch (Exception ex) { formMDI.infoError.ErrorString = "ER13 " + ex.Message; } }