activeControl
Contains a reference to the object that currently has focus.
Property of
Form, SubForm
Description
Use the activeControl property to reference the object that currently has focus.
An object gets focus in three ways:
The user tabs to the object.
The user clicks the object.
The setFocus( ) method of the object is executed.
Note
When a PushButton's speedBar property is set to true, and therefore a PushButton cannot get focus, the form's activeControl property does not show the PushButton as being the current activeControl.