Answers for "how to set linklabel link"

C#
0

how to set linklabel link

// the index  of the char in the linkLabel1.Text of which to start the link from
int index=4;
// the amount of char to be included in the link
int lenght=6;
// where the link should opem
string url="www.google.com";
//Links is of type LIST so you need to add it
linkLabel1.Links.Add(index, length, url);  


/*
linklabel1.Text = "www.google.com"
==>

www.google.com
    ______

only the chars "google" would be underlined
*/
Posted by: Guest on September-07-2021

Code answers related to "how to set linklabel link"

C# Answers by Framework

Browse Popular Code Answers by Language