load

load();

The load event of the Form class is always the first event called for the form and its controls (except the windowCreated event for the controls).

The load event is normally called when the form is displayed using the show or showModal method.

If the form or one of its controls receives an event before the form being displayed (for example, a sysNotify event), the load event is called before processing that event.

For the startup form, a show method is issued automatically after the form is created.

Typically, use a load event to include initialization logic for a form; for example, specifying default settings for controls, indicating contents to be loaded into combo boxes or list boxes, and initializing form-level variables.

When you create methods for related events such as activate, gotFocus, paint, and resize, ensure that their actions do not conflict and that they do not cause recursive events.

If a JADE logic exception occurs during the load event and the user responds by selecting the Abort option, the form is destroyed without any further events being issued.