How to force IE version in Winform WebControl?

I tried to find out the problem in one web design that I had, and remembered that I used simple javascript to get the browser version, since I had 2 different behaviors

so I add the following:

<div id="example"></div> <script type="text/javascript"> txt = "<p>Browser CodeName: " + navigator.appCodeName + "</p>"; txt+= "<p>Browser Name: " + navigator.appName + "</p>"; txt+= "<p>Browser Version: " + navigator.appVersion + "</p>"; txt+= "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>"; txt+= "<p>Platform: " + navigator.platform + "</p>"; txt+= "<p>User-agent header: " + navigator.userAgent + "</p>"; document.getElementById("example").innerHTML=txt; </script> 

and found out about it:

enter image description here

source image

although Internet Explorer 8 is installed on this computer, the webbrowser control downloads a version of IE (Internet Explorer 7) that is not installed.

How can I get to use the correct version?

+3
source share
2 answers

You can actually force the control to use a specific version of IE. Have a look at this article: Is the Witch version of the browser used by the WebBrowser control?

+6
source

I do not think that's possible. One option is to embed WebKit in your application: http://sourceforge.net/projects/webkitdotnet/

This will make your installation a lot bigger, but at least you will have a built-in competent browser. :)

0
source

All Articles