TextEdit.ReadOnly

From Xojo Documentation

Property (As Boolean )
aTextEdit.ReadOnly = newBooleanValue
or
BooleanValue = aTextEdit.ReadOnly

Supported for all project types and targets.

If True, the text of the control cannot be modified.

Example

This example is in the Open event of the control.

Me.ReadOnly = True