Load

This event occurs when an application loads a form.

Syntax

Private Sub form_Load( )

Parameters

form
Object expression that evaluates to a Form object.

Remarks

For a startup form, the event occurs when an application starts. This event also occurs when a form is first shown or as the result of a reference to an unloaded form's properties or controls.

When you create procedures for related events, such as Activate, GotFocus, Paint, and Resize, be sure that their actions do not conflict and that they do not cause recursive events.