Click here to Skip to main content
15,910,886 members
Home / Discussions / C#
   

C#

 
JokeRe: Speech to text convertion Pin
Greg Chelstowski1-Apr-09 1:33
Greg Chelstowski1-Apr-09 1:33 
AnswerRe: Speech to text convertion Pin
Mirko19801-Apr-09 2:04
Mirko19801-Apr-09 2:04 
QuestionProblem with LinkLabel Pin
Rajdeep.NET is BACK1-Apr-09 0:20
Rajdeep.NET is BACK1-Apr-09 0:20 
AnswerRe: Problem with LinkLabel Pin
DaveyM691-Apr-09 0:24
professionalDaveyM691-Apr-09 0:24 
GeneralThanx to Davey and Hugo Monkey! Pin
Rajdeep.NET is BACK1-Apr-09 0:32
Rajdeep.NET is BACK1-Apr-09 0:32 
GeneralRe: Thanx to Davey and Hugo Monkey! Pin
0x3c01-Apr-09 0:41
0x3c01-Apr-09 0:41 
GeneralHello again.... need help! Pin
Rajdeep.NET is BACK1-Apr-09 1:19
Rajdeep.NET is BACK1-Apr-09 1:19 
GeneralRe: Hello again.... need help! [modified] Pin
DaveyM691-Apr-09 1:29
professionalDaveyM691-Apr-09 1:29 
You'd need to do something like this (assuming you just want the whole text to be one link - you can have a link for as many characters as there are in the Text!).
linkLabel1.Text = "Go to Microsoft's web site";
linkLabel1.Links[0].LinkData = "http://www.microsoft.com";
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
    if (e.Link.LinkData is string)
    {
        string url = (string)e.Link.LinkData;
        System.Diagnostics.Process.Start(url);
    }
}


[Edit] Just had a quick play and the above works fine, but you could maybe improve it with something like this:
string keyText = "Microsoft";
linkLabel1.Text = string.Format("Go to {0}'s web site", keyText);
linkLabel1.Links[0].Start = linkLabel1.Text.IndexOf(keyText);
linkLabel1.Links[0].Length = keyText.Length;
linkLabel1.Links[0].LinkData = string.Format("http://www.{0}.com", keyText);
[/Edit]

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

modified on Wednesday, April 1, 2009 7:36 AM

GeneralRe: Hello again.... need help! Pin
Rajdeep.NET is BACK1-Apr-09 2:06
Rajdeep.NET is BACK1-Apr-09 2:06 
GeneralRe: Hello again.... need help! Pin
DaveyM691-Apr-09 2:24
professionalDaveyM691-Apr-09 2:24 
GeneralRe: Hello again.... need help! Pin
Rajdeep.NET is BACK1-Apr-09 2:50
Rajdeep.NET is BACK1-Apr-09 2:50 
GeneralRe: Hello again.... need help! Pin
DaveyM691-Apr-09 3:46
professionalDaveyM691-Apr-09 3:46 
GeneralRe: Thanx to Davey and Hugo Monkey! Pin
DaveyM691-Apr-09 0:44
professionalDaveyM691-Apr-09 0:44 
AnswerRe: Problem with LinkLabel Pin
Paul Unsworth1-Apr-09 0:25
Paul Unsworth1-Apr-09 0:25 
QuestionEncryption Problem Pin
Paul Unsworth1-Apr-09 0:15
Paul Unsworth1-Apr-09 0:15 
AnswerRe: Encryption Problem Pin
Rajdeep.NET is BACK1-Apr-09 0:36
Rajdeep.NET is BACK1-Apr-09 0:36 
AnswerRe: Encryption Problem Pin
SeMartens1-Apr-09 0:43
SeMartens1-Apr-09 0:43 
GeneralRe: Encryption Problem Pin
Paul Unsworth1-Apr-09 2:08
Paul Unsworth1-Apr-09 2:08 
AnswerRe: Encryption Problem Pin
MumbleB1-Apr-09 2:53
MumbleB1-Apr-09 2:53 
AnswerRe: Encryption Problem Pin
Rajdeep.NET is BACK1-Apr-09 2:53
Rajdeep.NET is BACK1-Apr-09 2:53 
GeneralRe: Encryption Problem Pin
Paul Unsworth1-Apr-09 3:22
Paul Unsworth1-Apr-09 3:22 
Questionhandled files Pin
lost_in_code1-Apr-09 0:13
lost_in_code1-Apr-09 0:13 
AnswerRe: handled files Pin
stancrm1-Apr-09 0:34
stancrm1-Apr-09 0:34 
GeneralRe: handled files Pin
lost_in_code1-Apr-09 0:39
lost_in_code1-Apr-09 0:39 
AnswerRe: handled files Pin
0x3c01-Apr-09 0:44
0x3c01-Apr-09 0:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.