简体   繁体   中英

How to force webbrowser control to use different version of mshtml, shdocvw

Does anyone know how to create an app similar to IETester tool .. I have IE9 installed in my system and I need to force the webbrowser control to use IE8 assemblies, that I have a local copy.

Any ideas??

Thanks in advance,

It is technically possible, as outlined in this MSDN Library article . Just create an empty file named app.exe.local where app is the .exe name of your main program. You must copy all of the IE8 DLLs into the same folder. Actually making this work strikes me as a bit of a headache, there are a lot of DLLs. You can see them getting loaded in the Output window when you run a dummy app with a WebBrowser on a machine with IE8. Project + Properties, Debug tab, tick "Enable unmanaged code debugging" to see the DLL paths.

您不能像描述的那样使用Web浏览器控件,但是使用上一个答案中的链接,您可以使用.local机制或类似机制,并直接访问WebBrowser包装的COM对象以完成您要执行的操作。

查看Rick Strahl撰写的这篇新文章,其中展示了如何进行一些注册表更改,这些更改将强制webBrowser控件使用不同版本的呈现引擎。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM