I have created an application that simply takes two inputs (numOne, numTwo) using a text box and then the method that is within the class multiplies it and returns the result. I can't get visual studio to use the user input numOne or numTwo to passed to the method to multiply them. The method multiplies numOne x numTwo and returns the result. How can I get the textbox user input to be passed to the method?
I have tried –
private void userInput_TextChanged(object sender, EventArgs e)
{
Class1 multiply = new Class1();
multiply.NumOne = userInput;
}
private void Okay_Click(object sender, EventArgs e)
{
Class1 Co = new Class1();
MessageBox.Show(Co.Multiply().ToString());
}