My if
does not evaluate correctly, I want you to verify that the textbox
are not empty or that textbox1
or textbox2
is not "var"
, otherwise mark error.
if (textbox1 != "" || textbox1 != "var" && textbox2 != "" || textbox2 != "var" && comboBox1 !=""){
MessageBox.Show("Mandar datos");
} else {
MessageBox.Show("Error");
}
}