Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I write an IE 8 Add-On in pure managed C#

I would like to write an add-on for IE 8, but I want to use pure managed C#. Is this possible yet? I know for the longest time we were talking only C++.

like image 535
Keith Adler Avatar asked Jul 21 '09 20:07

Keith Adler


People also ask

How do I enable add-ons?

Click the File tab, click Options, and then click the Add-Ins category. In the Manage box, click Excel Add-ins, and then click Go. The Add-Ins dialog box appears. In the Add-Ins available box, select the check box next to the add-in that you want to activate, and then click OK.

How do I manage add-ons in Edge?

In Microsoft Edge, select Extensions, located to the right of your browser address bar. Note: If you don't see Extensions to the right of your browser address bar, select Settings and more > Extensions. Select Open Microsoft Edge Add-ons. Find the extension you'd like to add and select Get.

How do I export my Internet Explorer add-ons?

To get started, open Internet Explorer and then click on the Favourites star. Then head to the drop-down menu, and click on Import or Export. From the Import/Export Settings dialog box, click on Export to a file and select the Next button.


2 Answers

Ultimately, the C# will end up calling into IE8's COM functions. There's a framework called Spicie that makes this easier, and some other examples here: http://www.enhanceie.com/ie/dev.asp

Generally, it's a bad idea to write browser extensions in .NET because there's a severe performance impact, and there's the possibility of runtime collisions because only one version of .NET can be loaded into a process currently; if two addons want to use conflicting .NET versions, one will fail.

like image 149
EricLaw Avatar answered Oct 24 '22 19:10

EricLaw


Have a look at this

http://code.msdn.microsoft.com/SpicIE

like image 27
PrimeTSS Avatar answered Oct 24 '22 18:10

PrimeTSS