Click here to Skip to main content
15,915,086 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi every1,

i did a windows application on frontoffice manamgement.
in that i hav two forms.

while compiling i am getting this error like

"The type or namespace name 'Form2' could not be found (are you missing a using directive or an assembly reference?) "
Posted
Comments
Sergey Alexandrovich Kryukov 27-Jan-12 3:25am    
You are missing something absolutely basic and simple. Remember, our access to your hard drive is somewhat limited, so we cannot see how you managed to screw up some simple stuff.
--SA

Check your names:
1) Is there a class called Form2 in your application? Are you sure it's not form2 instead? C# is sensitive to the case of names.
2) Is the class in the same namespace? The namespace is at the top of the file, and if you have changed it then you will have to be more explicit in referring to your form (or change the namespace back!)
 
Share this answer
 
Make sure you have included the namespace that form2 falls under in form1.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900