WebBrowserControl

Before navigating the URL, write meta into webbrowser's documenttext property as follows:

//Setting compatible mode of IE.
this.m_oWebBrowser.DocumentText = 
                  @"<html>
                  <head><meta http-equiv=""X-UA-Compatible"" 
                  content=""IE=IE11"" /> </head>
                  <body></body>
                  </html>";
this.m_oWebBrowser.Navigate("www.cnblogs.com");
posted on 2015-10-31 18:18  武胜-阿伟  阅读(324)  评论(0编辑  收藏  举报