Home All Groups Group Topic Archive Search About

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

Author
10 Apr 2005 8:29 PM
lukegregory
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

Author
10 Apr 2005 9:06 PM
Herfried K. Wagner [MVP]
"lukegregory" <lukegreg***@discussions.microsoft.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
11 Apr 2005 6:38 AM
Cor Ligthert
LukeGregory

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

Cor