如何将程序捕获到我的MDI表单中? [英] how do I capture a program into my mdi form?

查看:92
本文介绍了如何将程序捕获到我的MDI表单中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了两个单独的程序,第一个应该捕获另一个程序,第二个应该显示一个消息框,说明它已被捕获.

第一个问题:如何获取程序1来捕获任何正在运行的程序,例如黑洞"?

第二个问题:如何使程序2在捕获时向我显示一条消息?

进度:我已经设置了两个程序...第一个程序的窗体的mdi功能设置为true.

总是感谢所有帮助,谢谢.

Hi, I made two separate programs, the first one is supposed to capture the other program and the second one is supposed to show a messagebox stating that it has been captured.

first question: How do I get program 1 to capture any running program, like a "black hole"?

second question: How do I make program 2 show me a message when it is captured?

Progress: I have both programs set up... the first program''s form has the mdi capability set to true.

All help is always appreciated thanks.

推荐答案



您正在问的可能是可行的,但我不希望直接访问正在运行的程序.

相反,我建议您创建一个中间的 XML文件,以在两个应用程序之间传输数据.我不知道您希望通过同时附加两个应用程序来实现什么,但是希望您希望在两个应用程序之间进行通信并且还希望共享一些信息.

如果您确实要使用其他应用程序中的某些功能,请使用 WCF服务而不是尝试访问其他应用程序(就像病毒感染一样.)

希望这些信息对您有帮助
谢谢
-Amit Gajjar
Hi,

What you are asking may be possible but i am not prefer to access running program directly.

Instead what i suggest you to create one Intermediate XML file for transmitting data between both the application. I don''t know what you would like to achieve from attaching both the application but hopefully you would like to communicate between both application and also want to share some information.

If you really want to use some functions from other application then go for WCF service instead trying to access other application (it''s like virus infection.)

Hope this information helps you
Thanks
-Amit Gajjar


这篇关于如何将程序捕获到我的MDI表单中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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