Wednesday, February 8, 2017

RichTextBox.DetectUrls working intermittently

Leave a Comment

Environment: WinForms, .Net 4.5.1, VB.net, VS 2013

When loading plain text into a RichTextBox, it does not consistently detect the Urls in the plain text. I have set RichTextBox.DetectUrls but I am not sure that's the problem.

If I load the plain text, which can contain zero or more links, sometimes it will recognize the links (and format them so they can be clicked) and sometimes it will not. This statement is also true even when reloading the exact same text (so reloading will sometimes trigger the Urls to show as proper links and sometimes it will not).

I have not found anything here or elsewhere which discusses this. Are there any known reasons why this would be happening?

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment