How to call a form in another project

  • Thread starter Thread starter Robert Gage
  • Start date Start date
R

Robert Gage

Hello All
Can anyone tell me in a single solution how to call a form in another
project?
I have a large solution made up of several projects and need to call back
and forth betweem them

TIA
 
Robert Gage said:
Can anyone tell me in a single solution how to call a form in another
project?
I have a large solution made up of several projects and need to call back
and forth betweem them

Add a reference to the other project to your project, then import the
namespace containing the form class you want to instantiate and create an
instance as you do it with forms defined in the project:

\\\
Imports ClassLibrary1
....
Dim f As New Form1()
f.Show()
///
 
Thank You

Herfried K. Wagner said:
Add a reference to the other project to your project, then import the
namespace containing the form class you want to instantiate and create an
instance as you do it with forms defined in the project:

\\\
Imports ClassLibrary1
...
Dim f As New Form1()
f.Show()
///
 
Back
Top