VB 2010 - WebBrowser Choosing IE Version to use

Hi There,

This is taking me ages to resolve, and searching in google doesnt provide much at all. Maybe because of my lack of understanding to ask the right question.
I thought that the WebBrowser Component was supposed to use the version of IE installed on your comp. Well i had IE8.0 installed and upgraded to IE9.0 as have Win 7 64bit

However my VB browser app using WebBrowser insists on using the following:

Mozilla 4.0/ (Compatible; MSIE 7.0…

When i load the website in IE 9.0 using javascript to detect the version it shows correctly as:

Mozilla/5.0 (compatible; MSIE 9.0…

So why are they using versions so far apart? and how do you get around this? I dont want to use IE7.0 …at the very least IE8.0.

Many Thanks

Finally got it!
In case others need it.

You can mess around with the registry to set it. If your interested in this route search for the following key in google.
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]

Or you can just set it as a meta tag in your html header for the page loading within the WebBrowser componenet. By far easier if the issue only affects one project. This is what i shall be doing.

Use the latest installed version
<meta http-equiv=“X-UA-Compatible” content=“IE=edge” />

or Change the word ‘edge’ to a number to use that compatibility mode of IE
Parameters:
5
7
emulateIE7
8
EmulateIE8
edge