HideSelection Property

Purpose

Returns a value that determines whether selected text appears highlighted when a control loses the focus.

Syntax

object.HideSelection [ = True | False ]

object:Textbox, RichEdit, ListView Ocx

Description

Normally, an edit control hides the selection when the control loses the input focus and inverts the selection when the control receives the input focus. Specifying HideSelection = 0 deletes this default action.

Example

Ocx TextBox txt1 = "", 10, 10, 100, 14 : txt1.BorderStyle = 1 : txt1.HideSelection = 0 : txt1 = "TextBox 1"

Ocx TextBox txt2 = "", 10, 30, 100, 14 : txt2.BorderStyle = 1 : txt2 = "TextBox 2"

Do : Sleep : Until Me Is Nothing

See Also

TextBox, RichEdit, ListView

{Created by Sjouke Hamstra; Last updated: 09/10/2014 by James Gaite}