xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.

◆ can_focus()

virtual bool xtd::forms::control::can_focus ( ) const
virtualinherited

Gets a value indicating whether the control can receive focus.

true if the control can receive focus; otherwise, false.

Remarks
In order for a control to receive input focus, the control must have a handle assigned to it, and the visible and 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.