将应用程序嵌入Vb.Net表单 [英] Embed Application to Vb.Net Form

查看:86
本文介绍了将应用程序嵌入Vb.Net表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在vb.net表单中嵌入应用程序(例如录音机),而该应用程序位于表单内部并且无法拖动?

Is it possible to embed an application(ex: sound recorder) in vb.net form where the application is inside the form and cannot be dragged?

推荐答案

请看我对这个问题的评论.这真是个坏主意.流程是隔离的;除非它们是为此目的而设计的(套接字,TCP通信,.NET远程处理/WCF…),否则它们不会协作.由于Windows的特殊性,您始终可以使用(P/调用的)Windows API与HWND(窗口句柄)一起使用,将一个窗口粘贴在另一个窗口中.接下来您要做什么?

相反,您最好在单个过程中在组件级别使用某些内容,例如:
C#MP3声音捕获/记录组件 [使用C#的低级音频播放器 [ ^ ].

—SA
Please see my comment to the question. This is a really bad idea. Processes are isolated; they do not collaborate unless they are designed for this purpose (sockets, TCP communication, .NET remoting/WCF…). Due to Windows specifics, you can always stick one window inside another, using (P/Invoked) Windows API working with HWNDs (window handles), so what? What would you do next?

Instead, you could better use something in a single process, on a component level, something like this:
C# MP3 Sound Capturing/Recording Component[^].


Also play attention on the article referenced in the article I referenced above, on the player for the recorded sound:
A low-level audio player in C#[^].

—SA


这篇关于将应用程序嵌入Vb.Net表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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