Change IE mode for Webbrowser control

10k views Asked by At

I have IE10 installed on my machine and am trying to access a web application which I do not own. I am trying to embed a URL of that web application in .net browser control in my desktop application. The web application URL loads fine when I change the document mode of IE to either IE8 or IE9 standards, but fails to load in the default IE7 standards mode. I would like to be able force the web-browser control to run IE in IE8 or IE9 standards mode programatically in my .net application. I googled a lot & most of the solutions I found talked about the following two approaches.

  1. Making a registry entry to force IE to emulate a particular mode for my application.

  2. Adding the META tag to the HTML page to force it to open in a particular mode.

Is there any other suggested approach for this ? Earlier, I remember I could increase max connections (of IE) per server using wininet setInternetOption API. Is there any such API to set the IE mode for my application ? I would very much appreciate if someone can point me to some code snippet for the same.

1

There are 1 answers

0
PFrendo On

You have to change the registry as it runs in compatibility mode of the version you have installed natively. Refer to the below link.

Will the IE9 WebBrowser Control Support all of IE9's features, including SVG?