xtd 0.2.0
Loading...
Searching...
No Matches

◆ focus()

bool xtd::forms::control::focus ( )

Sets input focus to the control.

Returns
true if the input focus request was successful; otherwise, false.
Remarks
The focus method returns true if the control successfully received input focus. The control can have the input focus while not displaying any visual cues of having the focus. This behavior is primarily observed by the unselectable controls listed below, or any controls derived from them.
Examples
wiggly.cpp.