brent's hut

Exposing Windows Forms Controls as ActiveX controls

UserControl is not enough sometimes.
Sometimes you need to Expose a Form to ActiveX. Just don't forget to set it's TopLevel to false.
And it seems that a Form as MDI Container can't be exposed to ActiveX.Be aware of this if you want to expose your application to ActiveX.

Ok, you get through happily, and you should distribute you activex control now. Generate a cab file and put it on you web-server? No.
You have to do some ugly thing before it works. God will get very angry with this.

Finally, some one has contribute his work:

posted on 2007-10-17 20:15 brent 阅读(427) 评论(0)  编辑 收藏 引用 所属分类: WebC#

【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理