强制IE浏览器或WebBrowser控件使用指定版本显示网页

 

RegistryKey rk = Registry.LocalMachine;

  RegistryKey rks = rk.CreateSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\MAIN\\FeatureControl\\FEATURE_BROWSER_EMULATION");

  rks.SetValue("test.exe", "11000", RegistryValueKind.DWord); //11000 IE11代码

  rk.Close();

 

 其中test.exe为嵌入WebBrowser的应用程序名称。

参考链接:https://www.cnblogs.com/1175429393wljblog/p/5398928.html

posted @ 2018-05-15 17:04  mebius  阅读(230)  评论(0编辑  收藏  举报