Subj: C# Startup Form Error

Mark01
Mark01 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Lead Software Engineer
Commented:
Is frmOpenPDF in another namespace? If so, you would need to either change it or import that namespace.

Author

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.
Shaun KlineLead Software Engineer
Commented:
For forms, the namespace appears in two places: in the code file and in the designer file. Did you change it in both places?

Author

Commented:
No. I did not change it in both places. Thank you, Shaun.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial