C#从表单运行exe,并将exe保持在原始表单的边界内... [英] C# run exe from a form, and keep the exe within the boundaries of that original form...

查看:78
本文介绍了C#从表单运行exe,并将exe保持在原始表单的边界内...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows窗体中运行一个或两个exe。现在,我已经在这个板上找到了一些这样的例子,但是,我希望能够将exe保持在我在C#中创建的实际表单的边界内。我正在使用Visual Studio 2013.
$


非常感谢您的帮助,

I want to run an exe or two from inside a windows form. now, i have found a few examples of these on this board, but, I want to be able to keep the exe inside the boundary of the actual form I create in C#. I am using Visual Studio 2013.

thanks very much for your help,

Kevin Rea

Kevin Rea

美国加利福尼亚州兰开斯特

Lancaster, Calif. USA






推荐答案

我出生在你以北的空军基地。

I was born in the Air Force Base north of you.

你的要求当然不是Windows正常的解决方案是技术性的。对你来说可能太技术了。

Your requirement is of course not something normal for Windows to do so the solution is technical. It might be too technical for you.

WaitForInputIdle,如图所示。

In How can I run another application within a panel of my C# program? the answer with the most votes is relatively simple but be sure to us WaitForInputIdle, as it shows.


在Windows窗体应用程序中运行外部exe
投票最多的答案太简单了;它不使用
WaitFo rInputIdle;不要那样做,除非你确定你不需要
WaitForInputIdle

In run a foreign exe inside a windows form app the answer with the most votes is too simple; it does not use WaitForInputIdle; don't do that unless you know for sure you don't need WaitForInputIdle.


在另一个窗口内停靠窗口
得票最多的答案看起来很复杂且令人生畏但是它有大部分或全部原因也可能适用于您的要求。

In Docking Window inside another Window the answer with the most votes looks complicated and intimidating but there is a reason for most or all of what it does that is likely to apply to your requirements too.


这篇关于C#从表单运行exe,并将exe保持在原始表单的边界内...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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