Subj: C# Startup Form Error

I am trying to use VS 2008 to change the startup form to a form that was imported (frmOpenPDF) from another project, but I get a “the type or namespace could not be found” error. The screen shots show the details.
 No error for the default form1:
Default FormProject Browser
ProjectObject Browser (no frmOpenPDF)
New FormThe error
ErrorPlease help the resolve error.
Mark01Asked:
Who is Participating?
 
Shaun KlineConnect With a Mentor Lead Software EngineerCommented:
Is frmOpenPDF in another namespace? If so, you would need to either change it or import that namespace.
0
 
Mark01Author Commented:
The namespace for the imported form is CSh_Test2. The project name is CSh_Test3. I changed namespace for the imported form (frmOpenPDF) to CSh_Test3 and I get a "no suitable method found to override" error.
0
 
Shaun KlineConnect With a Mentor Lead Software EngineerCommented:
For forms, the namespace appears in two places: in the code file and in the designer file. Did you change it in both places?
0
 
Mark01Author Commented:
No. I did not change it in both places. Thank you, Shaun.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.