Simple project for creating a C# ActiveX and Container. It Provides a complete example of integrating with ActiveX, IE and C#.
This is the source code and Visual Studio project behind the Stackoverflow question How to connect a C# ActiveX event handler in Javascript
It combines three code examples:
- WebBrowser.ObjectForScripting Property
- How to develop and deploy ActiveX control in C#
- How can I make an ActiveX control written with C# raise events in JavaScript when clicked?
- Don't use document.write inside the event handler as the object will be cleared from the page.
- ActiveX object utilized by Javascript needs to be obtained from javascript.
- When trying to support IE <= 9 and IE >= 10, the WebBrowser Control will default to compatibility mode. This requires a registry entry to tell IIS to use IE > 7.