Load Event
Occurs just before an object is created.
PROCEDURE Object.Load
Remarks
The Load event occurs first for the form set and then for the contained forms. The Load event occurs before the Activate and GotFocus events.
To prevent a form from being created, return false (.F.) from the Load event; the Destroy event will not be executed.
See Also
Reference
Activate Event (Visual FoxPro)