GotFocus Event

Object List Next Object

Defined By:
ObjectList Control

Description:

Occurs when an object gains the focus. A control's focus can be gained by using the mouse or TAB key to select a control, or by using the SetFocus method in code.

Usage:

Sub GotFocus()

Details:

Before a form or control can receive the focus, its Enabled and Visible properties must be set to True.

Use the GotFocus event to determine what actions to perform when an object gains focus. For example, when a control gains focus you may want to change some of its properties, such as color, to indicate that it has the focus. You can display, enable, or hide other objects as a result of the GotFocus event as well. You can also use the GotFocus event to provide status messages or other helpful information to the user as the user navigates through the controls on a form.

See Also:

LostFocus event, SetFocus method, TabGroup property, TabStop property