How to open page in google chrome using C #

1

I need to open a window using C # with a specific webpage in Google Chrome (Not in the default browser).

A possible solution would be to run a javaScript in C #, but I'm not sure how I can open it in Chrome alone.

    
asked by anonymous 08.11.2018 / 17:47

1 answer

3

You can use Process.Start() .

using System;

namespace ConsoleApp
{
    public  class Program
    {
        public static void Main()
        {
             System.Diagnostics.Process.Start("chrome.exe", "https://pt.stackoverflow.com");
        }

    }
}
    
08.11.2018 / 17:58