[英]Expose a WinForms UserControl as an ActiveX control
How do you expose an WinForms UserControl written in C# as an ActiveX control? 如何将用C#编写的WinForms UserControl公开为ActiveX控件? My goal is to then use this UserControl from other languages such as VB6 or Delphi.
我的目标是从其他语言(例如VB6或Delphi)使用此UserControl。
解决方案是使用Interop Toolkit,请参见http://msdn.microsoft.com/zh-cn/vbasic/bb419144和http://www.codeproject.com/KB/vb-interop/VB6InteropToolkit2.aspx 。
您将需要根据您的方向创建一个Runnable Callable Wrapper或COM Callable Wrapper 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.