C# RichTextBox - Partially setting DetectUrls=false

Posted by Suds on Stack Overflow See other posts from Stack Overflow or by Suds
Published on 2010-06-14T05:21:35Z Indexed on 2010/06/14 5:22 UTC
Read the original article Hit count: 130

Filed under:
|

Hi, I have this RichTextBox and I have embedded some http links in it. I have set DetectUrls = true, and it displays the links correctly and handles in the event. In the same RichTextBox, I have one more string displayed which looks like this

Type http://< Your host name>

Now, since DetectUrls= true, the portion "http://<" is displayed as a link, while I want this to be text. If I set the DetectUrls=false just before displaying this string, none of the other links are displayed as links. Is there a way to partially set DetectUrls for some strings and not for others?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about richtextbox