launch google chrome in csharp

To launch Google Chrome in C#, you can use the Process.Start() method of the System.Diagnostics namespace. Here's the code snippet to launch Google Chrome in C#:

main.cs
using System.Diagnostics;

Process.Start("chrome.exe");
56 chars
4 lines

This code will launch Google Chrome on the system. You can also provide the URL of a website to launch in Chrome as an argument to Process.Start().

main.cs
Process.Start("chrome.exe", "https://www.google.com");
55 chars
2 lines

This will launch Google Chrome and open the Google homepage.

gistlibby LogSnag