You can use LinkLabel and set the LinkArea property:
//LinkArea (start index, length) myLinkLabel.LinkArea = new LinkArea(37, 18); myLinkLabel.Text = "An update is available, please visit http://example.com to download it!";
The above link will do http://example.com a while the rest of the text is in normal mode.
Edit response to comment: There are various ways to handle a link. One way is to give a description link (URL) and then launch the URL using Process.Start.
myLinkLabel.LinkArea = new System.Windows.Forms.LinkArea(37, 18); myLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(myLinkLabel_LinkClicked); myLinkLabel.Text = "An update is available, please visit http://example.com to download it!"; myLinkLabel.Links[0].Description = "http://example.com";
And the event handler can read the description and start the site:
void myLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Process.Start(e.Link.Description); }
source share