Visual Basic: RichTextBox Control

SelProtected Property

See Also    Example    Applies To

Returns or sets a value which determines if the current selection is protected. Not available at design time.

Syntax

object.SelProtected [ = value ]

The SelProtected property syntax has the following parts:

Part Description
object An object expression that evaluates to a RichTextBox control.
value A variant value that determines if the current selection is protected, as described in Settings.

Settings

Setting Description
Null The selection contains a mix of protected and non-protected characters.
True All the characters in the selection are protected.
False None of the characters in the selection are protected.

Remarks

Protected text looks the same a regular text, but cannot be modified by the end-user. That is, the text cannot be changed during run time. This allows you to create forms with the RichTextbox control, and have areas that cannot be modified by the end user.