如何在另一个表单中打开另一个exe的表单 [英] How to open form of another one exe inside another form

查看:73
本文介绍了如何在另一个表单中打开另一个exe的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我面临一个问题.我可以使用以下代码在另一个应用程序中打开一个exe的形式.

Hi All,

I am facing one problem.I can open form of one exe in another application using below code.

private void Form2_Load(object sender, EventArgs e)
       {
               Process objLVProcess ;
               objLVProcess = new Process();


               String strLVExePath  = "../../WindowsFormsApplication1.exe";
               ProcessStartInfo objLVProInfo = new ProcessStartInfo(strLVExePath);


               objLVProInfo.RedirectStandardOutput = true;
               objLVProInfo.RedirectStandardInput = true;
               objLVProInfo.RedirectStandardError = true;
               objLVProInfo.CreateNoWindow = true;
               objLVProInfo.WindowStyle = ProcessWindowStyle.Normal;
               objLVProInfo.UseShellExecute = false;
               objLVProcess.StartInfo = objLVProInfo;
               objLVProcess.Start();
       }


但是问题在于该表单应该位于父表单内,并且不应该移到父表单之外,并且当前这些事情还没有发生.该怎么办?

谢谢,
Abhay


But problem is that the form should be within the parent form and shouldn''t be moved outside of parent form and currently these things are not happened.How can Do this?

Thanks,
Abhay

推荐答案

嗨 那是你的意思吗?
在WinForm项目中托管EXE应用程序 [ ^ ]

希望对您有所帮助.
罗马
Hi Is that what you meant?
Hosting EXE Applications in a WinForm project[^]

I hope it''s helps.
Roman


这篇关于如何在另一个表单中打开另一个exe的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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