Is it possible for the .NET WebBrowser control to use IE9?

前端 未结 3 1198
孤街浪徒
孤街浪徒 2021-02-13 07:11

I realise it\'s an early release and unstable. I wouldn\'t dream of swapping out the default webbrowser control for IE9 in any other project, but in this case I specifically

3条回答
  •  花落未央
    2021-02-13 07:40

    Actually, you can modify your registry to force your program to use IE9 rendering. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION and add a new DWORD value named your program name (with .exe) and a decimal value set to 9999.


    You can also modify your registry to force your program to use IE9 GPU Rendering. Go to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_GPU_RENDERING and add a new DWORD value named your program name (with .exe) and a hexadecimal value set to 1.


    THIS ONLY WORKS IF YOU ACTUALLY HAVE IE9! You must download IE9 first, before you do this, or it will not work. If you want to render the pages with IE8 just change the 9999 to 8888.

    Note: GPU Rendering is only available in IE9

提交回复
热议问题