3

I need to set the compatibility mode of WebBrowser but it isn't working. I created the key HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION with value 9000 and a executable called contoso.exe (just like in the example) exactly like this topic does suggets. But if I open a page like this using the webbrowser it says:

Your web browser is:
    Internet Explorer 11 on Windows 8
    Internet Explorer 7 Compatibility View

How do I fix it? My guess is I didn't have exactly the IE9 version but a high, 11 version. But I didn't find such information nowhere to confirm it.

EDIT: value 11001 (IE11) doesn't change anything too.

Community
  • 1
  • 1
Jack
  • 16,276
  • 55
  • 159
  • 284
  • Are you also using ` ` and ``? More details: http://stackoverflow.com/a/24569944/1768303 – noseratio Jul 12 '14 at 10:27
  • @Noseratio: The web page I'm trying to open isn't mine... – Jack Jul 12 '14 at 14:25
  • 1
    @Noseratio: Thanks!!! you code worked just fine. Please post as answer here to I accept! – Jack Jul 12 '14 at 14:35
  • 1
    Jack, glad it helped! I'm not sure what to post as an answer besides the link itself, so you rather may want to up-vote that link. BTW, if the pages aren't yours and you're into web scrapping, check [this one](http://stackoverflow.com/a/22262976/1768303). – noseratio Jul 12 '14 at 14:59
  • 1
    This one: http://stackoverflow.com/questions/18333459/c-sharp-webbrowser-ajax-call/18333982#18333982 . I've already upvoted, of course! – Jack Jul 13 '14 at 17:35
  • Does make sense remove this thread? – Jack Jul 13 '14 at 17:36

1 Answers1

2

While the this question isn't exactly a duplicate of that one, the same code has apparently helped to solve the issue with the WebBrowser feature control (FEATURE_BROWSER_EMULATION).

Community
  • 1
  • 1
noseratio
  • 59,932
  • 34
  • 208
  • 486