Second Form Loading

Hi guys,

I'm writing a windows form app in VS2005 and the main app works fine, infact I have now gotten the second form problem solved, my question s more of a why...

Why does this work?:

1
2
MyProject::AbtFrm^ myForm = gcnew MyProject::AbtFrm();
myForm->Show();



but this doesnt?:

1
2
AbtFrm^ myForm = gcnew AbtFrm();
myForm->Show();


Both forms are in the same project with the same namespace "MyProject"

I hhave included AbtFrm.h in Form1 but still it refuses to find AbtFrm without the complete namespace. Any ideas? Thanks
Topic archived. No new replies allowed.