Search code examples
winformsinternet-explorerwebbrowser-control

WinForms - Does WebBrowser control rely on installed Internet Explorer?


I'm developing a little application that includes the WebBrowser control.

Does HTML pages may look different on the client machine than from mine, depending to the version of Internet Explorer that he has installed?

And does the internet settings he have chosen within Internet Explorer will affect the WebBrowser as well?


Solution

  • Answering my own question:

    The WebBrowser control does rely on IE installed on the client machine. However, by default it renders HTML pages the way IE 7 does, even if you or your client have a newer version if IE. This is in order to maximize compatibility. So unless you or your client have IE6/5.5, you are safe. If you want to target a newer version of IE, you need to set a registry key. See detailed info here (at the far bottom), here and here.

    Most, but not all IE Settings affect WebBrowser Control behavior.