0

I need to show HTML5 pages for WinForm and use component Webbrowser in mode emulation IE10.

When I open any hard page in Webbrowser I see it works slower than IE or other browsers.

For example

        Uri uri = new Uri("http://createjs.com/demos/easeljs/Cache.html");
        webBrowser.Url = uri;             
        webBrowser.Navigate(uri);

At http://createjs.com/demos/easeljs/Cache.html page if set "cache enabled" fps in IE10 > 60 but Webbrowser shows only 15 fps

Registry Mode Emulation IE10 for WebBrowser

 private static void Emulation() // IE10
        {
            try
            {
                string keyName = @"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION";
                string valueName = System.AppDomain.CurrentDomain.FriendlyName;
                RegistryKey key = Registry.LocalMachine.OpenSubKey(keyName, false);
                object FindKey = Registry.GetValue("HKEY_LOCAL_MACHINE\\"+ keyName,System.AppDomain.CurrentDomain.FriendlyName,null);
                if (FindKey == null)
                {
                    RegistryKey RegistryKey = Registry.LocalMachine.CreateSubKey(keyName);
                    RegistryKey.SetValue(System.AppDomain.CurrentDomain.FriendlyName, 10001, RegistryValueKind.DWord);
                }
            }
            catch (Exception Ex)
            {
                Console.WriteLine("Registry update error: " + Ex.Message);
                Console.WriteLine("Can't change browser version.");
            }
        }

Any advice how to increase performance WebBrowser on WinForm?

askeet
  • 689
  • 1
  • 11
  • 24

3 Answers3

2

What about using another Default Browser?

https://cefsharp.github.io/

Cefsharp is a port of Chromium to .NET! You can use it instead of IE...

Or you could this:

http://www.awesomium.com/#download

Awesomium is a HTML Engine...

  • Thank you for cefsharp , i didn't know about it. Awesomium isn't free. How alternative IE I used https://bitbucket.org/geckofx/geckofx-45.0 – askeet Jul 03 '16 at 10:19
1

You must set in the registry to use the latest IE version or Edge. Otherwise the oldest IE7 will be used. Use latest version of Internet Explorer in the webbrowser control

Community
  • 1
  • 1
0

When I updated IE from 10 to 11 version performance in component WebBrowser increased to the normal value.

askeet
  • 689
  • 1
  • 11
  • 24