How to make sure that when clicking on LiknLabel in Winforms, the browser opens and the link is followed? (C #)

    1 answer 1

    For example, this is how the link opens in the default browser:

    private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var url = linkLabel1.Text; //адрес ссылки это значение свойства `Text` System.Diagnostics.Process.Start(url); } 

    You can specify a specific browser like this:

     private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var url = linkLabel1.Text; System.Diagnostics.Process.Start("IExplore.exe", url); }