tags:

views:

161

answers:

2

Hi, I have developed a window application in VS2005 using C#. I need to integrate another project with my project

EDIT: i.e pass a variable from 1st project to 2nd project and load the form of the 2nd project.

So i called that other project's main using,

namespace.className.Main(args);

But if i do so, when the 2nd project is open i'm not able to switch to my first project. I need to exit my 2nd project to navigate to my 1st project.

Also i noticed that the 2nd project is running in the same process of 1st project rather than a new process. So how can i solve this problem.? do i need create a new thread or new process and make the second project run in it and how to do it so that they both will be independant and i can switch between the two aplications.?

A: 

Have you tried following?

var formFrom2ndProject = new FormFrom2ndProject()
formFrom2ndProject.Show()
Jakub Šturc
sorry as i missed this info, i need to pass a variable from 1st project to 2nd project and load the form of the 2nd project.
pragadheesh
+1  A: 

Have you tried

System.Diagnostics.Process.Start(filename);

MSDN Link

John Hunter