Reputation: 11
I'm displaying a HTML page containing a table in my webbrowser element on a windowsform. However some parts of the table appear differently in the webbrowser element than when I open the HTML file with any browser (including IE).
Here is the comparison:
https://i.sstatic.net/ZHzkO.jpg
Top: Any browser , Bottom: Webbrowser Element
(In case the link dies someday : some borders appear thicker than they should and vertical text is displayed as horizontal text).
Is there any way to fix this? What might cause this?
Upvotes: 0
Views: 665
Reputation: 1356
The WebBrowser
control is by default set to emulate IE7, which is probably the cause for this. You can change the IE-Level used for the WebBrowser
control by creating a registry entry, though it must be set for each individual executable.
For more details (like the exact registry key and possible values) see the following article on Code Project: Configuring the emulation mode of an Internet Explorer WebBrowser control
Upvotes: 1