Question

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.

Was it helpful?

Solution

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#.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top