TClrCustomControl.Focus Method

Sets input focus to the control.

Namespace: CNClrLib.Control.Base
public
 function Focus: Boolean;

Return Value

Type: Boolean

true if the input focus request was successful; otherwise, false.

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 nonselectable controls listed below, or any controls derived from them.