I am building a piece of software that requires a WebBrowser component.
Unfortunately it won’t show my page correctly.
My content uses this CSS style:
.content_mid{
background-image:url(http://img.awesome-o.net/Content_Mid.png);
background-size: 100% 100%;
vertical-align:text-top;
padding-left: 40px;
padding-right:20px;
min-height:400px;
}
Since I already found out the WebBrowser component uses the installed version of interwebs explorer, I checked the html on Internet Explorer, and it shows perfectly.
Here you see what it shows on IE:
And here is how it displays on the webbrowser component:
So, I checked the browser version:
Debug.WriteLine("WebBrowser version: " + webBrowser1.Version);
output: WebBrowser version: 9.0.8112.16443
So that should be alright I guess.


Just for further reference to other people needing this:
First of all:
Thanks to Boo & Lex Li
For helping me find the answer to my question.
You have to set a certain registry to the right value:
32 bit:
64 bit:
The value to set this key to is (taken from MSDN here) as decimal values:
Even tough MSDn claims that 9000 is the automatically assigned value. Apperently this is simply not true.
Below you can find the code how to add these keys to your registry. Please not that your application has a different processname when you debug.
So thanks all and Good Luck
Edit: User Account Control should be off to make this code work.