Hello, I am attempting to call a method from a click event on a form and not having much luck.
public void xbuttonValidateUPC_Click(object sender, EventArgs e)
{//Validate UPC Button Click
UPC_JDB UPC1 = new UPC_JDB("123");
string temp = (xtextBoxValidate.Text);
UPC1.ValidateUPC(temp);
xtextBoxValidateAnswer.Text = temp;
}//end Validate UPC Button Click
Program is supposed to take a string value in xtextBoxValidate text box, send it to ValidateUPC, and get back a message to display in xtextBoxValidateAnswer text box whether the UPC code is valid or not. At this point it just puts whatever I put in xtextBoxValidate.Text into xtextBoxValidateAnswer.Text. Any ideas?