Open WebBrowser in C#

Joined
Jul 19, 2022
Messages
1
Reaction score
0
I'm making an app that needs to open a website in the default webbrowser. ¿How can I do that? I alredy tried this:

using System.Diagnostics;

string url = "https://www.youtube.com";
Process.Start(url);

but I got this error:

Unhandled exception. System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'www.youtube.com' with working directory 'D:\Programming\C#\AT\WebTest\bin\Debug\net6.0'. El sistema no puede encontrar el archivo especificado.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top