IT researcher
IT researcher

Reputation: 3304

Browser emulation to the highest possible version of IE installed

In my vb6 application I have used webbrowser control in which online payment gateway website is loaded and it requires IE 8 and above. But even if IE 8 is installed the webbrowser control renders it in IE7 mode. It can be solved by using Browser emulation registry and I was able to solve it.

But now I have set value to 8888(Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive) . But if I do this even if PC has IE 9, 10 or 11 then it will be rendered in IE8 mode. But I think it will be better if the webbrowser control is rendered in highest version of IE installed in a PC, instead of fixing it to IE8 mode.

So how I can make Browser emulation to set to highest version of IE installed in PC?

Upvotes: 1

Views: 3091

Answers (2)

Aakash Uniyal
Aakash Uniyal

Reputation: 1559

Just put a big number like "11111111" as the value of FEATURE_BROWSER_EMULATION key. It will then take up the latest IE version installed in the system.

Upvotes: 0

Roman Plischke
Roman Plischke

Reputation: 1072

This is not easy, because there is no value for "edge" rendering. You could get IE version from registry

\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\svcVersion or Version

...try both keys, newer versions IE use svcVersion, older Version. Then set the appropriate value (see msdn) in the FEATURE_BROWSER_EMULATION key.

This solution has one big disadvantage: your program must have permissions for writing in registry. It is better to do it during installation, this is the correct way (however the FEATURE_BROWSER_EMULATION value is not updated in case of upgrading IE).

Upvotes: 3

Related Questions