Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.27 KB

README.md

File metadata and controls

17 lines (12 loc) · 1.27 KB

CsharpActiveX

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:

Things learned

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