I can't create instances of my new form in C# winforms... any idea why?
When I use the following code...
Form1 frmTest = new Form1();
I get a new instance of Form1...
I have added a form called Form2 to the project, but when I use the following code...
Form2 frmTest1 = new Form2();
I get the following error :
The type or namespace name 'Form2' could not be found (are you missing a using directive or an assembly reference?)
its definitely called Form2, and I have even tried this with other forms, like Form3 etc, but all I can do is Form1... any help?
Thanks in advance.
Re: I can't create instances of my new form in C# winforms... any idea why?
What is the namespace in the Form1.cs file? What is the namespace in the Form2.cs file?
Re: I can't create instances of my new form in C# winforms... any idea why?
Thankyou eclipsed4utoo :) there was a mismatch, I haven't used this forum in a while, is there a rating system I should use to thank you?