FocusControl Property

Applies to TestComplete 15.59, last modified on November 30, 2023

Specifies the form control associated with the label.


Read-Write Property A user form component
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:



Use the FocusControl property to obtain or specify the form control associated with the given label. The associated control receives the input focus when the user presses the label’s access key while holding the Alt key. You can use this feature to provide quick access to such form controls as text boxes, combo boxes, and others via the keyboard.

To include the access key in the label text, precede the desired character in the label’s Caption text with an ampersand (&) and set the ShowAccelChar property to True.

Property Value

A form control (that is, any component except for TOpenDialog and TSaveDialog) associated with the given label.

See Also

Caption Property
ShowAccelChar Property

Highlight search results