I'm having a weird problem with a VS C# project. I know this may sound stupid but this happens to me almost every time I try to import a form.
I am trying to add an existing form from a different project to my current project. I used Add Existing Item option to add the form to my project and it worked fine. I used the refractor to change the namespace and this also worked fine. I can edit the form & write code. However since this is not the main form I need to call it from a parent form and here's the problem: it's as if the form does not exist.
If I try this
frmName frm = new frmName(); frm.ShowDialog(this);
frmName is highlighted in red and I get "Are you missing a using directive or an assembly reference?" error.
Any ideas why is this happening?
Sorry if this isn't clear enough, I don't even know how to explain this.