Windows Controls Hosted in IE - Events

This is a sample project that demonstrates use of events (and properties) in Windows Forms Controls being hosted in IE, and the hooking up of said control to javascript.
 

Usage

Download the project. Unzip it to a directory, and then build it. Create a new Virtual Directory on your web site, and copy the TestEvents.html page to that site. Also copy in the IEEvents.dll. Then copy the iexplore.exe.config to the root of your site. For example, C:\InetPub\wwwroot. You will have to grant permissions to the assembly, FullTrust is probably the easiest.

More Info

Have a look at my blog entry on this for more information.