Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6563295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:48:49+00:00 2026-05-25T13:48:49+00:00

When using the System.Windows.Forms.WebBrowser control, is there a way to control which version of

  • 0

When using the System.Windows.Forms.WebBrowser control, is there a way to control which version of IE rendering engine it will use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:48:50+00:00Added an answer on May 25, 2026 at 1:48 pm

    I believe IE does this by manipulating the request User-Agent string.

    compatible; MSIE 7.0;
    compatible; MSIE 8.0;
    compatible; MSIE 9.0;
    

    So to use different rendering engines with WebBrowser you would need to do something similar. Unfortunately getting access to the User-Agent in WebBrowser is not easy. You can do it if you extend the actual Com component, rather than using the .Net control.

    public class ExtendedWebBrowser : WebBrowser
    {
        ...
    
        void BeforeNavigate(object pDisp, ref object url, ref object flags,
                           ref object targetFrameName, ref object postData, 
                           ref object headers, ref bool cancel)
        {
             if (!headers.Contains("X-RequestFlag")
             {
                 headers += "X-RequestFlag: true\r\n";
    
                 // append user-agent header here
                 headers["User-Agent"] = ...;
    
                 // cancel current request
                 cancel = true;
    
                 // re-request with amended details
                 Navigate((string)url, (string)targetFrameName, (byte[])postData, 
                          (string)headers);
             }
             else
             {
                 base.BeforeNavigate(...);
             }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the System.Windows.Forms.WebBrowser control to visit URLs. Certain URLs trigger popups which
I'm using a System.Windows.Forms.WebBrowser control next to textboxes with the left margins of each
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display
I am using System.Windows.Forms.WebBrowser control in C# for displaying some pages. I want to
I'm currently using System.Windows.Forms webbrowser control to automate a webpage. Everything works fine to
I am currently using the control System.Windows.Forms.WebBrowser to create an Wysiwyg editor in a
I am using the System.Windows.Forms.WebBrowser object for displaying and printing a report. Unfortunately the
I'm using the System.Windows.Forms.WebBrowser , to make a view a-la Visual Studio Start Page.
I'm using How to clear System.Windows.Forms.WebBrowser session data? and it works as long as
I can already do: using System.Windows.Forms; Button b; or: System.Windows.Forms.Button b; but I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.