System.Windows.Forms.TreeView.HideSelection Property

Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view has lost the 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 nodes in the System.Windows.Forms.TreeView control remain highlighted in a different color than the current selection color when the System.Windows.Forms.TreeView 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 TreeView.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