views:

9

answers:

0

I have an application that uses an embedded IE through the Windows Forms WebBrowser control. I want to embed some .NET controls into the HTML page.

There is old support (since .NET 1.0) to use a special classid in an <object> tag (dllname#controlname) but through experimentation I have found that it only works if the dll is served over http so it's not possible for me to use.

Is there any other way to add a .NET control (probably a UserControl subclass) to an existing html page loaded into the embedded IE instance?

Could I write a proper ActiveX control in .NET and use registry-less COM to get IE to instantiate it? I seem to remember some article about MS providing support for this to enable VB migration step-by-step but I can't find anything.

Other questions around MSHTML seem to imply that it's almost impossible to change its built-in behavior so I have very little hope which means that I'd be very happy if anyone has a solution.

/P