troubleshooting Question

C#: Using alternate web browser on Win Forms

Avatar of trevor1940
trevor1940 asked on
.NET ProgrammingC#
7 Comments1 Solution632 ViewsLast Modified:
Hi
I'm tryingg to build a winforms app that uses the built in web browser

On loading a JavaScript hungry HTML5  page I get a number of error boxes similar to the image

JSeror.JPG
Google suggested doing this which didn't work   (Even running the "...\debug\AppName.exe" in admin mode allowed the regestry to be set but failed to load the page correctly

More googling suggested using the nuget package Geckofx60.64


I'm struggling to know how to install this as there are several when searching for Geckofx

I'm also unsure how to run even the simple example given

 [STAThread]
       static void Main(string[] args)
       {
           Xpcom.Initialize("Firefox64");
           var geckoWebBrowser = new GeckoWebBrowser {Dock = DockStyle.Fill};
           Form f = new Form();
           f.Controls.Add(geckoWebBrowser);
           geckoWebBrowser.Navigate("www.google.com");
           Application.Run(f);
       }

Could someone start me of?

in my App I need to have real browser with at least 1 button that is used after the page loads to analyse the page using xpath queries
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros