Display hyperlinks in plain text in a Richtextbox control

I am using RichTextBox in a C # / Winforms application.

Show some text in this control that has UNC paths embedded in it: for example: filePath = "\\ serverName \ DirName \ File"

Richtextbox shows this file path as an interactive hyperlink in the user interface. filePath = " \\ server_name \ DirName \ File.doc "

I want to show this as plain text. How to do it?

Thank.

+3
source share
1 answer

DetectUrls. true, false, , .

richTextBoxName.DetectUrls = false;

false Visual Studio.

http://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.detecturls.aspx

+6

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


All Articles