Click here to Skip to main content
Sign Up to vote bad
good
See more: VB.NETHTML5
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 20 Jan '11 - 9:24


6 solutions

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. Cry | :((
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.
  Permalink  
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 Smile | :)
 
Maybe using webkit is an alternative
Comparison of layout engines (HTML5)[^]
 
Here is a .Net wrapper control:
WebKit .NET[^]
 
Regards
Espen Harlinn
  Permalink  
Comments
SAKryukov - 20 Jan '11 - 15:41
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:48
Thinks it's still in beta/preview or something
SAKryukov - 20 Jan '11 - 16:17
So I'm happy your answers confirms mine. Thank you.
Espen Harlinn - 20 Jan '11 - 16:20
Yes, the three of us making nearly the same answer - so you got a 5+ earlier on.
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!
  Permalink  
Comments
Espen Harlinn - 20 Jan '11 - 15:40
Seems we were thinking the same thoughts at the same time, 5+ :)
Manfred R. Bihy - 20 Jan '11 - 15:41
Oh no! Espen get out my head ........ :)
Espen Harlinn - 20 Jan '11 - 15:46
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.
SAKryukov - 20 Jan '11 - 15:41
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.
  Permalink  
Comments
SAKryukov - 20 Jan '11 - 15:43
If does not "emulate" IE, it embeds the shared code -- works exactly as currently installed IE.
Manfred R. Bihy - 20 Jan '11 - 15:48
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
  Permalink  
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 435
1 OriginalGriff 330
2 Arun Vasu 293
3 CPallini 213
4 Zoltán Zörgő 194
0 Sergey Alexandrovich Kryukov 10,105
1 OriginalGriff 7,739
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 2,999


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 28 Jan 2011
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid