property Expression.DisplaySelection as Boolean
Specifies whether the control displays the selection.

TypeDescription
Boolean A boolean expression that indicates whether the selection is visible or hidden.

Use the DisplaySelection property to hide the selection. Use the HideSelection property to hide selection when control loses the focus. Use the SelForeColor and SelBackColor properties to define the colors used to paint the selection. Use the SelStart, SelLength and SelText properties to access the selection. The SelForeColorHide property specifies the foreground color of the current selection when the control has no focus, and the HideSelection property is False. The SelBackColorHide property specifies the background color of the current selection when the control has no focus, and the HideSelection property is False.