In the image below I have a task pane in Microsoft Excel with a Rich Text Box (RTB) in it. Within this text box I want to make some of the text into clickable hyperlinks. Now, I know if you put a hyperlink into the RTB you can make it clickable using something like "Process.Start(e.LinkText);" as was answered in one of my previous questions. However i'm not sure how to embed a link into the text so that the user doesn't actually see the hyperlink. For example, I want "google" in the below image to take the user to www.google.com when the user clicks on it. Any tips on how to accomplish this?
Current code to just put some text in the RTB:
string test_string = "Google";
//Used to set the text in the task pane in real time
foreach (Control rtbControl in GlobalVars.myUserControl1.Controls)
{
if (rtbControl is RichTextBox & rtbControl.Name == "documentResults")
{
rtbControl.Text = test_string;
}
}