我如何运行我的C#程序的小组中的另一个应用程序? [英] How can I run another application within a panel of my C# program?

查看:168
本文介绍了我如何运行我的C#程序的小组中的另一个应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读大量关于如何从C#程序(的Process.Start())触发一个应用程序,但我还没牛逼能找到如何让这个新的应用程序运行的一组内的任何资料我的C#程序。例如,我想点击一个按钮,打开NOTEPAD.EXE在我的应用程序,而不是外部。

I've been reading lots on how to trigger an application from inside a C# program (Process.Start()), but I haven t been able to find any information on how to have this new application run within a panel of my C# program. For example, I'd like a button click to open a notepad.exe WITHIN my application, not externally.

感谢。

推荐答案

我不知道这是否仍是推荐的东西使用,但在对象链接和嵌入框架,使您可以嵌入特定的对象/控件直接进入您的应用程序。这将只可能在某些应用程序中工作,我不知道,如果记事本就是其中之一。对于像记事本真的简单的事情,你可能有一个更简单的只是时间的工作与任何媒介您正在使用(如的WinForms)提供的文本框控件。

I don't know if this is still the recommended thing to use but the "Object Linking and Embedding" framework allows you to embed certain objects/controls directly into your application. This will probably only work for certain applications, I'm not sure if Notepad is one of them. For really simple things like notepad, you'll probably have an easier time just working with the text box controls provided by whatever medium you're using (e.g. WinForms).

下面有一个链接到OLE信息开始:​​

Here's a link to OLE info to get started:

<一个href="http://en.wikipedia.org/wiki/Object_Linking_and_Embedding">http://en.wikipedia.org/wiki/Object_Linking_and_Embedding

这篇关于我如何运行我的C#程序的小组中的另一个应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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