code_junkie

C# How can I make a hyperlink work in a RichTextBox?

Nov 13th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. private void mRichTextBox_LinkClicked (object sender, LinkClickedEventArgs e) {
  2. System.Diagnostics.Process.Start(e.LinkText);
  3. }
  4.  
  5. Process p = new Process();
  6.  
  7. private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
  8. {
  9. p = Process.Start("IExplore.exe", e.LinkText);
  10. }
Add Comment
Please, Sign In to add comment