RichTextBox.DetectUrls works intermittently

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

When loading plain text in a RichTextBox, it does not detect Url in plain text. I installed RichTextBox.DetectUrls, but I'm not sure what the problem is.

If I download plain text that can contain zero or more links, sometimes it recognizes the links (and formats them so that they can be clicked), and sometimes it will not. This statement is true even if you reload the same text (so reloading can sometimes cause Urls to display as the correct links, and sometimes it won't).

I have not found anything here or elsewhere where this is being discussed. Are there any known reasons why this is happening?

+6
source share

Source: https://habr.com/ru/post/1014512/


All Articles