Navigate between Forms in different Projects in the same Solution (Visual Studio .NET)

I understand it is a common practice to have multiple Projects on one Solution in Visual Studio .NET, and I have had some luck making things work this way.

But, I can’t figure out a way to make the usual…

Dim Frm2 as New FormInOtherProject
Frm2.Show

…to recognize the Form in the other Project.  It always has the blue squiggly underline and says FormInOtherProject is not defined.

How is this done?

I don't know if Inheritance comes into play; all forms already Inherit(s) System.Windows.Forms.Form and you only get one Inherit per Class!

Thanks!
geekboystevesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RonaldBiemansCommented:
reference the other project in the project you want it, choose add references than choose the project tab and then select the project you want to use the form from.
Bob LearnedCommented:
Did you add a Project reference to Project2 from Project1?

You need to specify fully qualified names:  Namespace.Project.Form.

It would be helpful if both projects were in the same Namespace.

Bob
oleggoldCommented:
this is the usual config,U can use form by name if it's cofigured as shared(same level) and member of the same object
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

geekboystevesAuthor Commented:
Wnen I attempt to add a reference to Project2 (named 'OtherProjectTestFormOpoen’) in Project1 I get:

A reference to ‘OtherProjectTestFormOpoen’ could not be added. An assembly must have a ‘dll’ extension in order to be referenced.

As for NameSpaces, Visual Studio generates all the code with the word 'NameSpace' in it, and that is only in the code for DataSets (.xsd files).

Still lost...
RonaldBiemansCommented:
What you could also do is link the file,

go to your project you want to add the form to, choose add existing item, choose the form you want to use, and on the open button press the downarrow beside it and choose link file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob LearnedCommented:
@RonaldBiemans:
BSM attached :)

Bob
geekboystevesAuthor Commented:
I did not get anywhere with NameSpaces or References, but _Linking_ to the Form in Project2 worked perfectly.  I did it for a project2 I created and for a sample project I downloaded from the code-project.  The link worked for both.  As I always find after hours of head-scratching, if you're writing more than two lines of code, or scrambling in the bushes on your ninth stroke, you are not doing things the Visual Studio .NET way.

We need a Visual Studio .NET Area on the EE.

Thanks very much.

Steve
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.