Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

LinkLabel Example

RSS
Modified on Tue, Jul 13, 2010, 3:24 PM by Administrator Categorized as ┬ĚNet Framework
{copytext|div1}
private void Form1_Load(object sender, EventArgs e)
{
    uxLinkLabel.Text = "Yahoo\nGoogle";
    uxLinkLabel.Links.Add(0,5,"http://www.yahoo.com");
    uxLinkLabel.Links.Add(6,6,"http://www.google.com");
    uxLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(uxLinkLabel_LinkClicked);
}

void uxLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
    string url = e.Link.LinkData.ToString();
    System.Diagnostics.Process.Start(url);
}

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.