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.
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.