private void txtBoxCompany_TextChanged(object sender, EventArgs e) { customers = new VO.CustomersVO(); customers.Custcode = txtBoxCustCode.Text; customers.Companyname = txtBoxCompany.Text; customers.Correct(); if (txtBoxCustCode.Text != "" && txtBoxCompany.Text != "" && customers.Correct() == true) { btnAProceed.Visible = true; } else { btnAProceed.Visible = false; } }