ActiveX Control is running in separate window other than IE

ⅰ亾dé卋堺 提交于 2019-12-11 02:41:16

问题


I have developed an ActiveX Control in C#.NET. I created a class library with a default interface. Given GUID , ProgId and made it COM visible , interoperable. Registered. Created a cab file , then embedded it in HTML page using object tag by specifying it's classid and codebase. Loaded it using JavaScript Method. It is working. But problem is that it runs as a separate window other than Internet explorer. I want it to be loaded inside IE that is as a part of IE window. How to do it?

-- Thanks.


回答1:


Probably, you show your control in a separate Form. You'd just need to derive your control from UserControl, register it and let the ActiveX container (IE in your case) embed your control in-place. Check out C# ActiveX control (CSActiveX) and Interop Forms Toolkit for C#.



来源:https://stackoverflow.com/questions/19087599/activex-control-is-running-in-separate-window-other-than-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!