简体   繁体   English

将 C# 表单加载到 ActiveX 控件中

[英]Loading C# form into ActiveX control

Is it possible loading C# form (or C# application) into ActiveX control?是否可以将 C# 表单(或 C# 应用程序)加载到 ActiveX 控件中? I know how to load ActiveX control to C# form....我知道如何将 ActiveX 控件加载到 C# 表单中......

You can call a .Net form in VB6 (with Interop Forms Toolkit 2.0), and you can use VB6 to create an ActiveX so my guess is that it is possible.您可以在 VB6 中调用 .Net 表单(使用 Interop Forms Toolkit 2.0),并且可以使用 VB6 创建 ActiveX,所以我猜这是可能的。

I have also heard of ppl used forms created from .net-dlls and den using setparent-api and got it to act as a child to vb6-form.我还听说过 ppl 使用从 .net-dlls 创建的表单,并使用 setparent-api 将其用作 vb6-form 的子级。

All in all, yes it seems possible to load an C#-form in an activeX control.总而言之,是的,似乎可以在 activeX 控件中加载 C# 表单。

Interop Forms Toolkit 2.0: display .NET Winforms in VB6 Applications http://hubpages.com/hub/Interop_Forms_Toolkit_20 Interop Forms Toolkit 2.0:在 VB6 应用程序中显示 .NET Winforms http://hubpages.com/hub/Interop_Forms_Toolkit_20

And someone using SetParent, not a solution but from this its easy to google away to other solutions.有人使用 SetParent,不是一个解决方案,但很容易从谷歌搜索到其他解决方案。 http://www.eggheadcafe.com/forumarchives/NETFrameworkinterop/Oct2005/post24062147.asp http://www.eggheadcafe.com/forumarchives/NETFrameworkinterop/Oct2005/post24062147.asp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM