在WPF表单(C#)中集成VB6表单 [英] Integration of VB6 form inside WPF form (C#)

查看:75
本文介绍了在WPF表单(C#)中集成VB6表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想将VB6表单集成到WPF表单中.

详细问题:我在m/c上安装了两个应用程序(VB_app(VB6不是VB.net)和WPF_App(.NET应用程序)).当前的功能是,当我打开WPF_App时,它会自动启动VB_App,它仅在单独的窗口中打开VB表单.
现在,在m/c的单独窗口中打开了2个应用程序.我想在WPF表单中添加一个标签,然后单击该标签,我想在WPF表单中打开该VB表单.
此VB表单将在WPF表单内保留一个空格,以使VB表单不能分开移动,并且仅在关闭WPF应用程序后才会关闭.

请让我知道是否可行,如果可以,请提供解决方案.如果有人可以向我提供VB6(仅包含一种VB表单)和WPF应用(仅包含一种WPF表单)的示例代码以及创建它的步骤,我将不胜感激.

问候

Amit

Hi All,

I want to integrate the VB6 form into WPF form.

Detail Problem : I have two application (VB_app(VB6 not VB.net) and WPF_App(.NET app)) installed on my m/c . Current functionality is that when I open the WPF_App it automatically start VB_App which opens only VB form in seprate window.
Now 2 applications opened in seprate window on m/c. I want to add a tab in WPF form and onclicking of this tab, I want to open that VB form inside WPF form.
This VB form will take a space inside WPF form so that VB form cannot be moved separtely and will be close only after closing WPF app.

Please let me know if it is possible or not and if yes then please provide me solution. I will highly appreciate if anyone can provide me sample code of VB6(contain only one VB form) and WPF app(contain only one WPF form) and steps to create it.

Regards

Amit

推荐答案



您可以使用类似的功能:
在WinForm项目中托管EXE应用程序 [ ^ ]
尽管它是为Winforms实现的,但您应该也可以对WPF进行同样的操作.
Hi,

you could use a similar functionality like this one:
Hosting EXE Applications in a WinForm project[^]
Although it is implemented for Winforms, you should be able to do the same for WPF.


这篇关于在WPF表单(C#)中集成VB6表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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