How can I open another project from the current project using threads or processes in C #.?

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

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

So, I called this another main project,

namespace.className.Main(args);

      

But if I do this when the 2nd project is open, I cannot switch to my first project. I need to exit the second project to go to my 1st project.

Also I noticed that the second project is running in the same process of the first project and not in a new process. So how can I solve this problem? do I need to create a new thread or a new process and do a second project in it and how do I do this so that they are both independent and I can switch between the two applications.?

+1


a source to share


2 answers


You tried

System.Diagnostics.Process.Start(filename);

      



MSDN link

+2


a source


Have you tried following?



var formFrom2ndProject = new FormFrom2ndProject()
formFrom2ndProject.Show()

      

0


a source







All Articles