RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.SetFocus Method

Sets focus to the form.

Pascal
procedure SetFocus; override;
C++
virtual __fastcall SetFocus();

Use SetFocus to give the form input focus. SetFocus calls the SetFocus method of the active control, if one exists. To determine whether the form has focus, use the Active property. 

 

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