mardi 21 avril 2015

VS2012 cannot find newly created forms

VS2012 C#- I have a project that is using Form1.cs as the target form on opening and it provides DB data and editing options. I now have created Form2.cs which will provide reporting based on Form1.cs data. I have added a button on Form1.cs which will link to Form2.cs....However when I type new Form2().Show(); it will not let me perform this action as it cannot find Form2.cs......Seriously confused as other projects DONT have this issue... I can see the form in the solution explorer but cannot link to it. What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire