2

Has anyone found and used an alternative to the Microsoft Webbroswer ActiveX control with any success? The open source Firefox ActiveX version seems to be a dead project development wise and based on an old Firefox version.

2 Answers2

4

Give a look to the GeckoFX Project, an open-source component for embedding Mozilla Gecko (Firefox) in .NET applications.

Written in clean, fully commented C#, GeckoFX is the perfect replacement for the default Internet Explorer-based WebBrowser control.

screenshot
(source: googlecode.com)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Christian C. Salvadó
  • 807,428
  • 183
  • 922
  • 838
0

I just installed Microsoft's WebView2 NuGet Package named "Microsoft.Web.WebView2" and dropped the control on a Windows Form and gave it a source to navigate to:

//Build your own URL
string sURL = $"https://auth.tdameritrade.com/auth?response_type=code&redirect_uri={sCallbackURLEncoded}&client_id={sConsumerKey}%40AMER.OAUTHAP";
//Set it as the source
wvLogin.Source = new Uri(sURL);

BAM! It worked. I wish I had known this was available before wasting time on browser controls that do not package well or testing browsers that cost $800 or $1500 for a single licencse.

John Kurtz
  • 775
  • 8
  • 16