public void txtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { formloading = true; if (Descrip_txtbox.Visible == true) { clearandhide(); } if (apprvdbycomboxbox.Text == "" && Jobreqcombo.Text == "" && reqstbycomboxbox.Text == "" && woreqcombox.Text == "" && itemcombobox.Text == "" && jobtakencombobox.Text == "" && wotakenfromcomboBox.Text == "") { Showallitems(); } if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); mainsearch(); } else { SearchStringPosition(txtSearch.Text); searchtext(txtSearch.Text); } e.Handled = true; e.SuppressKeyPress = true; formloading = false; } }
public void TxtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { formloading = true; if (Descrip_txtbox.Visible) { Clearandhide(); } if (string.IsNullOrEmpty(Createdbycombobox.Text) && string.IsNullOrEmpty(lastsavedbycombo.Text) && string.IsNullOrEmpty(Salespersoncomboxbox.Text) && string.IsNullOrEmpty(Shiptocomboxbox.Text) && string.IsNullOrEmpty(Soldtocombobox.Text) && string.IsNullOrEmpty(custvendcombobox.Text) && string.IsNullOrEmpty(CarrierscomboBox.Text)) { Showallitems(datarequest); FillInvoiceItems(); } if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); Mainsearch(); } else { SearchStringPosition(); searchtext(txtSearch.Text); } e.Handled = true; e.SuppressKeyPress = true; formloading = false; } }
public void TxtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { formloading = true; if (Descrip_txtbox.Visible) { Clearandhide(); } if (string.IsNullOrEmpty(jobnumbercombobox.Text) && string.IsNullOrEmpty(approvedbycombo.Text) && string.IsNullOrEmpty(deptrequestedcomboxbox.Text) && string.IsNullOrEmpty(requestedbycomboxbox.Text) && string.IsNullOrEmpty(ecrstatuscombobox.Text) && string.IsNullOrEmpty(completedbycombobox.Text) && string.IsNullOrEmpty(supervicsorcomboBox.Text)) { Showallitems(true); } if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); Mainsearch(); } else { SearchStringPosition(); Searchtext(txtSearch.Text); } e.Handled = true; e.SuppressKeyPress = true; formloading = false; } }
public void TxtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { formloading = true; if (Descrip_txtbox.Visible) { Clearandhide(); } if (string.IsNullOrEmpty(Createdbycomboxbox.Text) && string.IsNullOrEmpty(ReleasedBycombox.Text) && string.IsNullOrEmpty(CheckedBycomboxbox.Text) && string.IsNullOrEmpty(Prioritycombox.Text) && string.IsNullOrEmpty(ApprovedBycombobox.Text) && string.IsNullOrEmpty(LastSavedcombobox.Text) && string.IsNullOrEmpty(ByStatuscomboBox.Text)) { Showallitems(); } if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); Mainsearch(); } else { SearchStringPosition(); Searchtext(txtSearch.Text); } e.Handled = true; e.SuppressKeyPress = true; formloading = false; } }
public void txtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { formloading = true; if (Descrip_txtbox.Visible) { clearandhide(); } if (string.IsNullOrEmpty(jobnumbercombobox.Text) && string.IsNullOrEmpty(authorizedbycombo.Text) && string.IsNullOrEmpty(customercomboxbox.Text) && string.IsNullOrEmpty(technamecomboxbox.Text) && string.IsNullOrEmpty(projectmangercombobox.Text) && string.IsNullOrEmpty(refjobcombobox.Text) && string.IsNullOrEmpty(equipmentcomboBox.Text)) { Showallitems(true); } if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); mainsearch(); } else { SearchStringPosition(); searchtext(txtSearch.Text); } e.Handled = true; e.SuppressKeyPress = true; formloading = false; } }
private void Performjobsearch(string job) { if (Descrip_txtbox.Visible == true) { Clearandhide(); } Showallitems(); Mainsearch(job); if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); } }
public void txtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { if (Descrip_txtbox.Visible == true) { clearandhide(); } Showallitems(); mainsearch(); if (txtSearch.Text.Length > 0) { Descrip_txtbox.Show(); SendKeys.Send("{TAB}"); } e.Handled = true; e.SuppressKeyPress = true; } }