Hello, I have a class firstClass
in form two texboxes and a button:
code for button is:
I want to overload the method and allow strings instead of integers.
last I want to create another button and diplay in messagebox based on a third textbox.
thank you
Code:
public static int add(int numberOne, int numberTwo) { return (numberOne + numberTwo); }
code for button is:
Code:
int total = firstClass.add(int.Parse(textBox1.Text), int.Parse(textBox2.Text)); MessageBox.Show(total.ToString());
last I want to create another button and diplay in messagebox based on a third textbox.
thank you
Comment