5

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++.

1800 INFORMATION
  • 131,367
  • 29
  • 160
  • 239
Keith Adler
  • 20,880
  • 28
  • 119
  • 189

3 Answers3

19

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.

EricLaw
  • 56,563
  • 7
  • 151
  • 196
  • 5
    You have to spin up the .NET framework at loadtime, and because IE8 uses a process-per-tab, you'll end up loading the framework on every tab creation. Even on a fast machine, this is a non-trivial impact to the working set and load time. – EricLaw Sep 11 '09 at 05:04
2

Have a look at this

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

PrimeTSS
  • 2,683
  • 3
  • 23
  • 26
1

This question is quite old now, but posting this just in case someone find it useful. =)

I have another answer here on SO about how to make IE 8 add-ins using C#:

How to get started with developing Internet Explorer extensions?

Community
  • 1
  • 1
Miguel Angelo
  • 23,796
  • 16
  • 59
  • 82