private void btnSearch_Tafsili_Click(object sender, EventArgs e) { try { frmAllAccount f = new frmAllAccount(); f.op = "All"; f.Fill_All_Account(); f.ShowDialog(); txtTafsili.Text = f.Acc_Code; } catch { } }
private void txtTafsili_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { if (txtTafsili_Name.Text != "") { btnFinish.Focus(); } else { frmAllAccount f = new frmAllAccount(); f.op = "All"; f.Fill_All_Account(); f.txtSearch.Text = txtTafsili.Text; f.ShowDialog(); txtCode.Text = f.Acc_Code; } } }
private void txtMaqsad_Code_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { if (txtMaqsad_Name.Text != "") { SendKeys.Send("{tab}"); } else { frmAllAccount f = new frmAllAccount(); f.op = "All"; f.Fill_All_Account(); f.txtSearch.Text = txtMaqsad_Code.Text; f.ShowDialog(); txtMaqsad_Code.Text = f.Acc_Code; } } }
private void txtAcc_Code_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { if (txtAcc_Name.Text != "") { txtDescription.Focus(); } else { frmAllAccount f = new frmAllAccount(); f.Fill_All_Account(); f.op = "All"; f.txtSearch.Text = txtAcc_Code.Text; f.ShowDialog(); txtAcc_Code.Text = f.Acc_Code; } } }