Open a form from one project in another within the same solution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to open a form from one project from a form in another project
within the same solution? If so how is this done? Thanks
 
lukegregory said:
Is it possible to open a form from one project from a form in another
project
within the same solution? If so how is this done? Thanks

That's only possible if the project containing the form is a class library.
In other words: You cannot set a reference to another EXE file from another
project, but you can add references to class libraries within EXE and class
library projects.

In order to add a reference to a class library which is part of the same
solution select the project in the solution explorer, choose "Add/Remove
reference..." from its context menu and select the class library project on
the "Projects" tab.
 
LukeGregory

Little addition to Herfried, he wrote it, however you would change in the
project properties the output type to class libary.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top