Version

Prevent Text from Being Edited

WinFormattedTextEditor™ is a formatted text editor with great editing capabilities. But what if you don’t want the end user editing its contents? What if you also want the end user to be able to select the contents and copy it to the clipboard. There are several situations where this could become a reality, for example, a document being bound to Microsoft® Visual SourceSafe, or a product key in an application’s About dialog box. Setting WinFormattedTextEditor to read-only mode is accomplished by setting the ReadOnly property to True. Set the property at design time in the Properties window or at run time with the following code:

In Visual Basic:

Me.ultraFormattedTextEditor1.ReadOnly = True

In C#:

this.ultraFormattedTextEditor1.ReadOnly = true;