Control.canFocus

Overview | Methods | Fields | This Package | All Packages

Control.canFocus

Retrieves a boolean value indicating whether this control can receive the focus.

Syntax

public final boolean canFocus()

Return Value

Returns true if the control can receive the focus; otherwise, returns false. In order for a control to receive the focus, the control must have a handle, and the control and all its parent controls must be both visible and enabled.