Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET HTML5
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:24am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
v3
Comments
SAKryukov at 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 at 20-Jan-11 15:48pm
   
Thinks it's still in beta/preview or something
SAKryukov at 20-Jan-11 16:17pm
   
So I'm happy your answers confirms mine. Thank you.
Espen Harlinn at 20-Jan-11 16:20pm
   
Yes, the three of us making nearly the same answer - so you got a 5+ earlier on.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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 at 20-Jan-11 15:40pm
   
Seems we were thinking the same thoughts at the same time, 5+ :)
Manfred R. Bihy at 20-Jan-11 15:41pm
   
Oh no! Espen get out my head ........ :)
Espen Harlinn at 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.
SAKryukov at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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 at 20-Jan-11 15:43pm
   
If does not "emulate" IE, it embeds the shared code -- works exactly as currently installed IE.
Manfred R. Bihy at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

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
0 Sergey Alexandrovich Kryukov 547
1 ChauhanAjay 180
2 CHill60 135
3 Maciej Los 125
4 Richard Deeming 125
0 Sergey Alexandrovich Kryukov 9,735
1 OriginalGriff 6,987
2 CPallini 5,835
3 George Jonsson 4,017
4 Gihan Liyanage 3,266


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100