如何启动从同一地图的另一个C#程序C#程序? [英] How to start a c# program from another c# program in the same map?

查看:123
本文介绍了如何启动从同一地图的另一个C#程序C#程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个简单的C#窗体程序,我想在第一个程序按钮启动其他形式的,当我点击它,但我不知道如何访问其他programm.cs主要方法,你能不能帮我?

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 main method, could you help me?

编辑:
我想在programm1开始从programm2的主要方法,我添加了从programm2的assembiliti到programm1

I want to start in Programm1 the main method from programm2, the assembiliti from programm2 i added to programm1

推荐答案

您必须使用Process类System.Diagnostics命名空间中启动第二方案,请参阅这篇文章在MSDN,

You have to use the Process class of the System.Diagnostics namespace to start the second program, refer to this article on the MSDN,

HTTP ://msdn.microsoft.com/en-us/library/system.diagnostics.process(VS.71)的.aspx

这篇关于如何启动从同一地图的另一个C#程序C#程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆