Skip to content

JesseKPhillips/CsharpActiveX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple project for creating a C# ActiveX and Container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages