Note that there are some explanatory texts on larger screens.

plurals
  1. POReplacing .NET WebBrowser control with a better browser, like Chrome?
    primarykey
    data
    text
    <p>Is there any relatively easy way to insert a modern browser into a .NET application? </p> <p>As far as I understand, the <code>WebBrowser</code> control is a wrapper for <strong>IE</strong>, which wouldn't be a problem except that it looks like it is a very old version of <strong>IE</strong>, with all that entails in terms of CSS screw-ups, potential security risks (if the rendering engine wasn't patched, can I really expect the zillion buffer overflow problems to be fixed?), and other issues. </p> <p>I am using <em>Visual Studio C#</em> (express edition - does it make any difference here?)</p> <p>I would like to integrate a good web browser in my applications. In some, I just use it to handle the user registration process, interface with some of my website's features and other things of that order, but I have another application in mind that will require more err... control. </p> <p>I need:</p> <ul> <li>A browser that can integrate inside a window of my application (not a separate window)</li> <li>A good support for CSS, js and other web technologies, on par with any modern browser</li> <li>Basic browser functions like "navigate", "back", "reload"...</li> <li>Liberal access to the page code and output. </li> </ul> <p>I was thinking about Chrome, since it comes under the BSD license, but I would be just as happy with a recent version of IE. </p> <p>As much as possible, I would like to keep things simple. The best would be if one could patch the existing <code>WebBrowser</code> control, which does already about 70% of what I need, but I don't think that's possible.</p> <p>I have found an activeX control for Mozilla (<a href="http://www.iol.ie/~locka/mozilla/control.htm" rel="noreferrer">http://www.iol.ie/~locka/mozilla/control.htm</a>) but it looks like it's an old version, so it's not necessarily an improvement.</p> <p>I am open to suggestions</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. COWhy do you say that the WebBrowser control uses an old version of IE? It uses the version installed on the user's system, although the IE8 WebBrowser appears to default to IE7 rendering: http://blogs.msdn.com/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx
      singulars
    2. COBecause it doesn't look that way on my machine. I have IE8 installed but the control shows display issues that I haven't see since IE 5. A very simple login form, 2 fields with a touch of CSS has a garbled display, and some javascript display doesn't work, whereas it displays fine in IE8, Firefox, Chrome, Opera ... so I assumed the rendering engine was an old one. I could be completely wrong about that and perhaps the problem is in fact different from what I thought.
      singulars
    3. CO@Sylverdrag: You are wrong. It uses the latest IE on your system. However, I read somewhere that the WebBrowser control has a stronger backwards-compatibility issue than the standalone browser. IE8 can have, for instance, an icon to click to turn on IE7 mode. As part of your program, this is not possible, so the control defaults to the earlier mode for compatability. OTOH, I haven't read how to set it to use "IE8 mode".
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload