System.Windows.Forms.Control.CanFocus Property

Gets a value indicating whether the control can receive focus.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

In order for a control to receive input focus, the control must have a handle assigned to it, and the Control.Visible and Control.Enabled properties must both be set to true for both the control and all its parent controls, and the control must be a form or the control's outermost parent must be a form.

Requirements

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