You might wish to refer to this section as you read the following
sections on individual form events.
The following events will occur in the order listed when a form
first loads into memory:
-
Initialize
-
Load
The following events will occur in the order listed when a form
becomes the active form in the application (depending on the circumstances, this
might happen right after the form loads into memory):
-
Activate
-
GotFocus (triggered only if there are no enabled or visible
controls on the form)
The following events happen to an active form when another form
in the same application becomes active:
-
LostFocus (triggered only if there are no enabled or visible
controls on the form)
-
DeActivate
The following events will occur in the order listed when a form
is unloaded from memory:
-
QueryUnloads
-
Unload
-
Terminate (fires only if you set the form to Nothing in or
after the Unload event)