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

  • Home
  • SEARCH
  • 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 7018077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:59:49+00:00 2026-05-27T22:59:49+00:00

I’m working on a basic program and I’ve tried adding a working webBrowser component

  • 0

I’m working on a basic program and I’ve tried adding a working webBrowser component to, in order to give the user more flexibility and be able to browse certain web-sites from within the program, however I’ve run into a problem I can’t get ahead of.

Most modern websites have some dependencies with the new browsers, for example if you visit youtube from within a webBrowser component it tells you to upgrade to a more modern browser. There are other website issues as well such as transparency issues, bitmap problems, missing or missplaced layout, and whatnot. For example visitting StackOverflow with a webBrowser component makes the website rather odd looking, and the logo is not tansparent.

I used this code to bring up a web browser in a window:

                    this->webBrowser1->Dock = System::Windows::Forms::DockStyle::Fill;
            this->webBrowser1->Location = System::Drawing::Point(0, 0);
            this->webBrowser1->MinimumSize = System::Drawing::Size(20, 20);
            this->webBrowser1->Name = L"webBrowser1";
            this->webBrowser1->Size = System::Drawing::Size(823, 587);
            this->webBrowser1->TabIndex = 0;
            this->webBrowser1->Url = (gcnew System::Uri(L"http://www.google.com", System::UriKind::Absolute));

And this code to navigate to a certain website upon button click after a website was entered in a text field:

private: System::Void toolStripButton1_Click(System::Object^  sender, System::EventArgs^  e) {
                 webBrowser1->Navigate(toolStripTextBox1->Text);
             }

My question is, how do you fix these dependencies? Is there a problem with the Visual Studio itself? (Since I’m using the 2008 version) Or does it use the IE7 options by default? If so, how can you fix it so websites load properly and work as intended?

  • 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-27T22:59:49+00:00Added an answer on May 27, 2026 at 10:59 pm

    As far as I know the WebBrowser control renders pages in the default mode, which is normally IE7, however, from your description it sounds like your control is actually rendering in IE6 mode. Which would suggest you only have IE6 installed on your development machine.

    As it seems the only solution to this problem is to either add a meta tag to the webpage or change the default mode in the registry. For further information, have a look at this post. It might help.

    Personally, I’d suggest using a different browser control as you will probably never actually have control over what the users of your tool will be seeing with IE.
    Webkit and Gecko are both free and easy to use, up to date and offer a lot more functionality, if you can live with the additional dependencies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is

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.