I followed the walk through, more or less and created a .NET Winforms control that is hosted in IE. The control I made is very simple, but it targets something I’ve always struggled with in web applications – a cancelable progress bar.
Here is the control in a Winforms application:
And the same control hosted in IE:
The notable thing in that code is the presence of the AllowPartiallyTrustedCallers attribute in the AssemblyInfo.cs file; my control wouldn’t load properly without it.
I’ve uploaded my code into a Code Gallery project called Project Coelacanth. The coelacanth is a fish that was once thought to been long extinct (last seen 146 million years ago); yet it turned up in surprisingly in 1938.
Not to say that hosting .NET controls in IE is extinct by any stretch of the imagination, but it doesn’t seem to be something people mention in the same breadth as AJAX and it seems like it should.
I’m new to doing this and there appears to be some known issues around it; maybe that’s why it’s not that popular. If anyone has had more experience with this, I’d love to hear it.