Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a website with google chrome

I am making a desktop search app. I need a way to set the web browser target to Google Chrome. I.e., if a person clicks a button in my app it will open Chrome with the website instead of Internet Explorer.

like image 456
Phexion Avatar asked Dec 21 '22 21:12

Phexion


1 Answers

run the chrome exe with a url as the first arg

chrome.exe xkcd.com

So something like...

Process.Start("pathToChrome\\chrome.exe", "xkcd.com")

like image 159
gingerbreadboy Avatar answered Dec 28 '22 07:12

gingerbreadboy