Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
how make my c# web browser to support html5
Posted
Comments
Kornfeld Eliyahu Peter 7-Jan-14 5:17am    
You wrote a web browser in C# and now looking to support HTML 5?
neymar1107 7-Jan-14 9:16am    
yes can you help me
Arslan Elahi 7-Jan-14 5:28am    
i would refer you to use webkir dotnet ...here is the link http://webkitdotnet.sourceforge.net/basics.php
griffwk 8-Jan-14 16:51pm    
Well, from another "original" Griff---

I'm here to tell ya---IE 11's Webbrowser Control, instantiated through a simple WTL app (which works JUST FINE for everything else)

DOES NOT support HTML5 Video!!!

It seems that even the MSDN gurus can't solve this simple question...

OK, found the answer (at least for the case of hosting the Webbrowser control in C++)

You must add a registry entry to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION

For 32bit OS


*******OR*******

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION

For 64bit OS

and this entry must be a DWORD, with the name being the name of your executable, that hosts the Webbrowser control; i.e.:

myappname.exe (DON'T USE "Contoso.exe" as in the MSDN web page...it's just a placeholder name)

Then give it a DWORD value, according to the table on:

http://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx#browser_emulation

I changed to 11001 decimal or 0x2AF9 hex --- (IE 11 EMULATION)

WHY that isn't the DEFAULT value (When you have IE 11 installed -- or whatever version), instead of IE 7 or 8, I'll never know...

PROBLEM SOLVED (at least in this case!)

GWK
 
Share this answer
 
Comments
Adrian Di Ruggiero 16-Oct-15 15:29pm    
Thank you man, your comments were very useful for a similar issue I was having!
griffwk 9-Nov-15 1:38am    
Glad it worked for you!

This is such an important issue for so many, and the MS docs on it are so obscure-you would think that MS would write a definitive MSDN article, and really just walk us Devs through the solution, kind of like I tried to do...

I can't, for the life of me, understand why the BROWSER_EMULATION key isn't just set by default to the browser you have installed??????

It's backwards, and kind of like guilty-until-proven-innocent!!!
gwk
The WebBrowser control is just a .NET wrapper for the IE browser installed on your system. So if the PC you run your application on has a version of IE that supports HTML5, then the WebBrowser control should as well. If it doesn't, then your app won't either.
 
Share this answer
 
Comments
neymar1107 7-Jan-14 9:24am    
realy ?
OriginalGriff 7-Jan-14 9:42am    
Would I lie to you?
Kornfeld Eliyahu Peter 7-Jan-14 9:25am    
And I almost believed him, that he wrote a web browser...
OriginalGriff 7-Jan-14 9:42am    
:laugh:
This solution work like a charm

http://stackoverflow.com/questions/18333459/c-sharp-webbrowser-ajax-call
 
Share this answer
 
v2

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