System.Windows.Forms.ListView.HideSelection Property

Gets or sets a value indicating whether the selected item in the control remains highlighted when the control loses focus.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool HideSelection { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When this property is set to false, selected items in the System.Windows.Forms.ListView control remain highlighted in a different color than the current selection color specified by the operating system when the System.Windows.Forms.ListView control loses focus. You can use this property to keep items that are selected by the user visible when the user clicks a different control on the form or moves to a different window.

Note:

If you are concerned with the accessibility of your applications, it is recommended that you set the ListView.HideSelection property to false.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0