Visual Basic Reference
EnterFocus Event
See Also Example Applies To
Occurs when focus enters the object. The object itself could be receiving focus, or a constituent control could be receiving focus.
Syntax
Subobject_EnterFocus()
The EnterFocus event syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
Remarks
This event is useful if object needs to know that the focus is now inside of it.
The EnterFocus event is raised before any GotFocus event; the GotFocus event will only be raised in object or constituent control of object that actually got the focus.