Vcl.Forms.TCustomForm.SetFocus

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetFocus; override;

C++

virtual void __fastcall SetFocus();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Sets focus to the form.

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.

See Also