I have used this method on form2 to get values over to form3:
**form2.cs**
Form3 frm3 = new Form3(cbDelivery.Text, cbOderNo.Text, cbCartonCode.Text, lblGRV.Text);
frm3.Show();
this.Hide();
But now every time I want to use that I get “no overload for method ‘form3’ takes ‘0’ arguments”.
I do understand its looking for that same values but I don’t need them. For example when I’m on form4 and want to go back to form3.
How do I bypass this?
Thanks in advance.
Somewhere in your code there is a call to a method named form3 (in your code example it is a constructor but the error says otherwise) with zero arguments. Overloading is a feature lets you to create multiple methods with same name but different number of arguments. So compiler is looking for a match and tells you that there is no overload of this method that takes 0 arguments. You should fix your method calls.