简体   繁体   English

如何将Windows应用程序附加到我的C#应用​​程序?

[英]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.

相关问题 在c#Windows桌面应用程序中动态附加mdb数据库文件 - dynamically attach mdb database file in c# windows desktop application 如何始终在Windows应用程序中使用C#在系统任务栏中显示我的应用程序图标 - How to Always show my app icon in System Tray using C# in windows application 如何打开本机应用程序以捕获视频,然后使用C#在Windows Phone 8中捕获后返回我的应用程序? - How to open the native application to capture a video then return to my app once captured in Windows Phone 8 using C#? 如何将C#控制台应用程序附加到正在运行的Windows服务? - How can you attach a C# console application to a running windows service? 将应用程序附加到C#中的另一个应用程序中 - attach an application into another in C# 如何通过C#表单应用程序启动Windows8 Metro App? - How to launch a Windows8 Metro App by C# form application? 如何为C#wpf应用程序自定义Windows 8.1相机应用程序 - how to Customize windows 8.1 camera app for C# wpf application 如何使用c#在我的Windows窗体应用程序中嵌入vlc - How to embed vlc in my windows form application with c# c#如何将pdf文件包含到我的Windows窗体应用程序中 - c# how to inclued a pdf file to my windows form application 如何自动最小化Windows窗体应用程序(C#)? - How to automatically minimize my Windows Form Application (C#)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM