Exchange "Web Browser" Vb.net

Asked

Viewed 687 times

0

I want to change the default browser of visual studio, I would like to use another to run some scripts that are having problems in internet explorer. I would like suggestions and examples of how to do this. Thanks in advance.

  • My project is in Windows Forms, I use the standard visual studio browser to run some graphics in java script, only I had some problems recently and I will need to change the browser. Anyway, I will run this browser inside the form itself.

  • I don’t know if it works on Vb, but C#, by nuget you can install the CefSharp based on the Chromium project. It was the only solution I could get for the same scenario.

1 answer

1


You have some options, one of them is what Rovann quoted, so I’ve researched it’s worth testing on Gecko, it’s based on Mozilla. I’ll put a C# code sample (for Vb.net you won’t have trouble converting)

Cefsharp

Dotnetbrowser (paid)

Geckofx

 GeckoWebBrowser browser;
    public Form1()
    {
        InitializeComponent();

        var app_dir = Path.GetDirectoryName(Application.ExecutablePath);
        Gecko.Xpcom.Initialize(Path.Combine(app_dir, "xulrunner"));

        browser = new GeckoWebBrowser();

        browser.Dock = DockStyle.Fill;
        this.browser.Name = "browser";

        this.Controls.Add(browser);
    }
  • 1

    Thanks Thiago. I will check and do some tests! .

Browser other questions tagged

You are not signed in. Login or sign up in order to post.