Solve the problem of WebBrowser call IE version in VB

Source: Internet
Author: User

Not really. My WinForm program has loaded a Web project. This project is not too good for IE8 browser layout compatibility. This machine uses the IE8, the project is. net4.0. There is no problem viewing a Web project with a native browser. But there is a layout problem with the WebBrowser browsing the Web project page in the call WinForm. So I started to question whether WebBrowser is the IE8 mode. So open IETester, from IE9 to IE5 all looked over again, found that most like WebBrowser layout is presented in IE7 mode. In search of some relevant data originally WebBrowser use IE compatibility mode for browsing (IE7 mode).

How to get WebBrowser to quote IE 8. Can be implemented through the registry's new key value

Open HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\main\featurecontrol\feature_browser_emulation

Add a DWORD value to it. The key value name is written to your program name, and then the numeric data is filled in 1f40. which is IE8.

After completion of the completed. Open to the program directory to see WebBrowser has already referenced IE8 mode, here is the idea is not to open in vs.

It is recommended that you use only local tests. Try to improve the site's own compatibility is kingly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.