public void patient_valid() { dll.insertPatient(); if (txtpatid.text == string.Empty) { MessageBox.Show("no textbox should be empty"); } else if (txtpatname.text == string.Empty) { MessageBox.Show("no textbox should be empty"); } else if (txtpatadd.text == string.Empty) { MessageBox.Show("no textbox should be empty"); } else if (comboBox1.text == string.Empty) { MessageBox.Show("no textbox should be empty"); } else if (txtpatnumber.text == string.Empty) { MessageBox.Show("no textbox should be empty"); } }