Jirong's Groovey .net space

My Dotnet oriented blog

导航

用.net 编写ActiveX组件?

用C#编写ActiveX控件

上回跟bloodchen有过类似的讨论,用.net编写Maxthon的Sidebar Plugin。

这个应该不能算是真正的ActiveX,可以到Add Reference试试,你没有办法将它添加到你的winform project里,IE是市面上唯一官方提供support的unmanaged host for winform control,smart application一部分,如果您在.net安全向导里设置允许直接运行.net程序,点击.exe的链接,IE会自动调用framework来运行这个managed component。可以参考wahoo这个winning application. http://www.sellsbrothers.com/wahoo/

MS在.net framework 1.0 beta里有文档说明如何将Winform Usercontrol publish为activex,但是1.0 release不再支持。如果有兴趣可以参考Chris Sells和CodeProject上的文章。http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html
http://www.codeproject.com/cs/miscctrl/exposingdotnetcontrols.asp

posted on 2005-01-05 23:49  Jirong Zhou  阅读(2779)  评论(0)    收藏  举报