Search code examples
windowwebbrowser-controlquirks-mode

Force System.Windows.Forms.WebBrowser open in standard mode


I'm developing a client windows form application. the application must browse URLs provided by servers in a System.Windows.Forms.WebBrowser control. The problem is when Navigating Document Mode is set to Quirks and a "Http Status 403" is shown instead of the requested Page. How to force webBrowser to open in standard mode without changing the registry?


Solution

  • Have you tried setting the FEATURE_BROWSER_EMULATION feature control got your application's executable filename?

    Remember that the default values for a number of feature controls vary between IE and applications hosting the webbrowser control. If you see different behavior when rendering the same content, it's possible that a feature control needs to be adjusted.

    Hope this helps...

    -- Lance