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.
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.
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");
}
}
}