System.Windows.Forms.Control.CanSelect Property

Gets a value indicating whether the control can be selected.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public bool CanSelect { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property returns true if the Selectable value of System.Windows.Forms.ControlStyles is set to true, is contained in another control, the control itself is visible and enabled, and all its parent controls are visible and enabled.

The Windows Forms controls in the following list are not selectable and will return a value of false for the Control.CanSelect property. Controls derived from these controls are also not selectable.

Requirements

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