积极答复者
winform 调用另一进程

问题
答案
-
如果进程B不存在的话,你可以使用Process.Start方法来启动B应用程序, 具体实现代码参考:
http://www.cnblogs.com/liuwang/archive/2013/01/25/2876595.html
如果B应用程序启动了你就直接将其显示的实现参考下面文章:
http://www.cnblogs.com/zhili/p/OnlyInstance.html
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已建议为答案 亂馬客 2013年9月20日 2:25
- 已标记为答案 Jason Dot WangModerator 2013年10月7日 10:07
全部回复
-
您好,
您可以先找看看要启动的进程是否存在,存在的话,就将它的视窗显示出来,如下,
Process.GetCurrentProcess Method
Bring another processes Window to foreground when it has ShowInTaskbar = false
没有找到的话,就用Process.Start去启动它!
Launching another application from C# -
如果进程B不存在的话,你可以使用Process.Start方法来启动B应用程序, 具体实现代码参考:
http://www.cnblogs.com/liuwang/archive/2013/01/25/2876595.html
如果B应用程序启动了你就直接将其显示的实现参考下面文章:
http://www.cnblogs.com/zhili/p/OnlyInstance.html
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已建议为答案 亂馬客 2013年9月20日 2:25
- 已标记为答案 Jason Dot WangModerator 2013年10月7日 10:07