LinkLabel C#

I want to make my link label to open the default browser and move to my website.
I also want to make the link lable use the default mail program to send me an e-mail.
How can I do that?
LVL 5
drtoto82Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
gillgatesConnect With a Mentor Commented:
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
    {
        // Determine which link was clicked within the LinkLabel.
        this.linkLabel1.Links[linkLabel1.Links.IndexOf(e.Link)].Visited = true;

        // Display the appropriate link based on the value of the
        // LinkData property of the Link object.
        string target = e.Link.LinkData as string;

        // If the value looks like a URL, navigate to it.
        // Otherwise, display it in a message box.
        if(null != target && (target.StartsWith("www") || target.StartsWith("mailto:" )
        {
            System.Diagnostics.Process.Start(target);
        }
        else
        {    
            MessageBox.Show("Item clicked: " + target);
        }
    }
0
 
gillgatesCommented:
mailto:youname@youdomain.com?subject=yousubject
0
All Courses

From novice to tech pro — start learning today.