문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top