/// <summary> /// For Navigation , Search Ledger and also create a new ledger /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbCashOrParty_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.Enter) { cmbDeliveryMode.Focus(); } if (e.KeyCode == Keys.Back) { if (cmbCashOrParty.Text == string.Empty || cmbCashOrParty.SelectionStart == 0) { txtDate.Focus(); txtDate.SelectionStart = 0; txtDate.SelectionLength = 0; } } // Cash or Party POP UP when Ctrl+F if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control) { if (cmbCashOrParty.SelectedIndex != -1) { frmLedgerPopup frmLedgerPopupObj = new frmLedgerPopup(); frmLedgerPopupObj.MdiParent = formMDI.MDIObj; frmLedgerPopupObj.CallFromDeliveryNote(this, Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()), "CashOrSundryDeptors"); } else { Messages.InformationMessage("Select any cash or party"); } if (e.KeyCode == Keys.C && Control.ModifierKeys == Keys.Alt) { SendKeys.Send("{F10}"); btnCashOrParty_Click(sender, e); } } // Cash or Party New Creation when Alt+C if (e.KeyCode == Keys.C && Control.ModifierKeys == Keys.Alt) { btnCashOrParty_Click(sender, e); } } catch (Exception ex) { MessageBox.Show("DN75:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }