How to start form2 in new process?

.net, c#, exe, process, winforms

Solution

You can create your Form2 in a separate project and call the builded exe-file by

System.Diagnostics.Process.Start("Form2.exe");

Problem

I have a project with two forms, and I need to start form2 in a new process, how can I do this? I know there is ``` Form2 f2 = new Form2(); f2.Show(); this.Hide(); ``` But in this case that is not good for me. I need to start in a new process (as an another .exe file). So anyway how can I do this? [UPDATE] I forget to tell you that I need to pass some information to the form2, like ``` Form2 f2 = new Form2(someInformation); f2.Show(); this.Hide(); ```

Original source

Related problems