How to start a c# program from another c# program in the same map?

后端 未结 3 1470
轮回少年
轮回少年 2021-01-26 22:41

i have two simple c# form programs, and I want to make a button in the first program start the other form when i click it, but i dont know how to access the other programm.cs ma

3条回答
  •  不要未来只要你来
    2021-01-26 23:15

    You can't access a form or a method of the other program. One reason is that it's a separate program, another reason is that it's not running.

    What you can do is to start the other program:

    Process.Start("TheOtherProgram.exe");
    

提交回复
热议问题