property Edit.HideSelection as Boolean
Specifies whether the selection in the control is hidden when the control loses the focus.

TypeDescription
Boolean A boolean expression that specifies whether the selection is visible when the control loses the focus.  

The property has no effect if the DisplaySelection property is False. Use the HideSelection property to hide the 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. Use the GetSelection method to determine the coordinates of the selected text. Use the SetSelection method to select a text giving the end and start coordinates. 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.