Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am wondering if there is a way to make the web browser control in .net win forms display html5 correctly?

I am wanting to preview some code generated html5 with in a win forms app.
Thanks,
Posted

The web browser control lets you embed IE in your application, so until IE provides support for the HTML5 features you wnat to visualize, you will be unable to use the WebBrowser control for this purpose.

If you install IE 9[^] you might get what you want. You'll just have to try and see :)

Maybe using webkit is an alternative
Comparison of layout engines (HTML5)[^]

Here is a .Net wrapper control:
WebKit .NET[^]

Regards
Espen Harlinn
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 20-Jan-11 15:41pm    
Good answer (my 5), but is IE9 bundled with anything? If it works, the software product should require it as a prerequisite.
Espen Harlinn 20-Jan-11 15:48pm    
Thinks it's still in beta/preview or something
Sergey Alexandrovich Kryukov 20-Jan-11 16:17pm    
So I'm happy your answers confirms mine. Thank you.
Espen Harlinn 20-Jan-11 16:20pm    
Yes, the three of us making nearly the same answer - so you got a 5+ earlier on.
To best of my (limited) knowledge there is no way, unfortunately.

Just wait until situation gets better and keep suffering from all that compatibility issues. :((
Publications say there is a Google plug-in to support HTML5, by how would you enforce it use?

I'm not sure about IE9. You really need to try to know for sure.
 
Share this answer
 
v2
I'm not to sure about the innards of the web browswer control, but if you have IE9 installed I thought that would also change the HTML5 capabilities of said control. After all isn't the webrowser control just some .NET wrapper to the underlying IE that is already on the system?

What IE version do you have installed on your system? Does the installed IE version on your system handle HTML5 differently from the webbrowser control?

Cheers!
 
Share this answer
 
Comments
Espen Harlinn 20-Jan-11 15:40pm    
Seems we were thinking the same thoughts at the same time, 5+ :)
Manfred Rudolf Bihy 20-Jan-11 15:41pm    
Oh no! Espen get out my head ........ :)
Espen Harlinn 20-Jan-11 15:46pm    
Oh no, I'm going to keep lurking about in here, and just when you're ready to submit, I'll post the answer as my own. Easy way to to heighten my score, and being plugged into your memory matrix ensures that I will post a good answer each and every time.
Sergey Alexandrovich Kryukov 20-Jan-11 15:41pm    
Good answer (my 5), but is IE9 bundled with anything? If it works, the software product should require it as a prerequisite.
Thank you all I did not realize that the web browser control just emulated IE.

I have IE9 beta installed already and I had not tested viewing the page in IE9 I had been viewing it in Firefox.

It does not display correctly in IE9.
It does in Firefox.

Thank all of you for your responses.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Jan-11 15:43pm    
If does not "emulate" IE, it embeds the shared code -- works exactly as currently installed IE.
Manfred Rudolf Bihy 20-Jan-11 15:48pm    
And also IE9's support for HTML5 isn't that good either. Can you elaborate a bit on what the differences in displaying it in Firefox as opposed to IE9 are. Or better yet do you have a linke to an example of your work. That way we could try it out.
I actually found a work around...
For some reason the white space matters in the html that is being rendered and for whatever reason it works in ff and not IE9.
For example this will not work
tabstave notes 1/2

but this will

tabstave
notes 1/2
 
Share this answer
 
To answer my own question I used Webkit which is a firefox engine and it worked great didn't even have to change a line of code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900