2021年5月6日星期四

C# basic linkLabel doesn't open url, exception unhandled

This is my simple code, yet it throws me an exception for some reason

      private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)              {                  System.Diagnostics.Process.Start("chrome", "https://www.google.com/");              }    

The Exception:

System.ComponentModel.Win32Exception: 'The system cannot find the file specified.'  

I don't understand why this is happening

https://stackoverflow.com/questions/67427978/c-sharp-basic-linklabel-doesnt-open-url-exception-unhandled May 07, 2021 at 09:44AM

没有评论:

发表评论