[英]How to attach windows application to my c# app?
I would like to attached windows application to my private application. 我想将Windows应用程序附加到我的私人应用程序。 There is a windows based application that I would like to attached to my Window app.
我想将一个基于Windows的应用程序附加到我的Window应用程序。 Let's say I have dialog app and i want to attached to the 0,0 location Of my app?
假设我有对话框应用程序,并且想附加到应用程序的0,0位置?
Is there a way to do that ? 有没有办法做到这一点 ? Thanks for the help!
谢谢您的帮助!
PS I don't have the code for the desired window application. PS我没有所需的窗口应用程序的代码。
You need to use Win32 API calls (so yeah, P/Invoke). 您需要使用Win32 API调用(是的,P / Invoke)。 An example of this that comes to mind can be found in CodeProject.
可以在CodeProject中找到这个例子。 The article I'm referring to uses MS-Word and attaches it into the custom application, so that it looks like one of the windows of the custom app.
我所指的文章使用MS-Word并将其附加到自定义应用程序中,因此它看起来像自定义应用程序的窗口之一。
Check the link out - hope it helps... 检查链接-希望对您有帮助...
http://www.codeproject.com/KB/miscctrl/winwordcontrol.aspx http://www.codeproject.com/KB/miscctrl/winwordcontrol.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.