private void cmbCashOrBank_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { CmbAccountLedger.Focus(); } }
private void txtReceiptNo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { CmbAccountLedger.Focus(); } }
public void Clear() { txtReceiptNo.ResetText(); CmbAccountLedger.SelectedIndex = -1; txtAmount.Text = "0"; txtNarration.ResetText(); txtDate.ResetText(); CmbAccountLedger.Select(); btn_Save.Enabled = true; btnUpdate.Enabled = false; btn_Delete.Enabled = false; }
private bool check() { if (_objValidation.IsNotEmpty(txtReceiptNo.Text)) { if (CmbAccountLedger.SelectedValue != null) { return(true); } else { MessageBox.Show("Please Select Account Ledger First...!"); CmbAccountLedger.Select(); return(false); } } else { MessageBox.Show("Receipt No Can`t Be Blank...!"); return(false); } }