form2 newF2;
newF2 myform = new NewF2();
myform.ShowDialog();
I have the above code. I have a button in form1 that launches form2.
I get the following error message "The type or namespace name could not be found (are you missing a using directive or an assembly reference?)
I have been trying to figure this out for about 2 hours and I have no clue why I am getting this error. Both forms have the same namespace. Any ideas?
Using the below code I also get the same error:
form2 myform = new form2();
myform.ShowDialog();