RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.FocusControl Method

Sets focus to a control on the form.

Pascal
procedure FocusControl(Control: TWinControl);
C++
__fastcall FocusControl(TWinControl * Control);

Use FocusControl to set focus to a control on the form. 

Control is a TWinControl object encapsulating the control on which to set focus. FocusControl sets the ActiveControl property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!