property Edit.SelForeColor as Color
Specifies the selection's foreground color.

TypeDescription
Color A color expression that specifies the selection's foreground color.

Use the SelForeColor and SelBackColor properties to define the colors used to paint the selection, when the control has the focus. Use the HideSelection property to specify whether the control hides the selection when the control loses the focus. 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. Use the DisplaySelection to hide 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 control fires the SelChange event when user changes the selection.