Occurs when the form is created before controls are created.
Object.OnInitialize()
The OnInitialize event syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
The event occurs as a result of a Load statement. It is called after the form object is created but before its window or any of the form controls or menus are created.
The OnInitialize event occurs before the OnLoad event and it is the first event that occurs to the form.
Use this event to initialize any data or form property used by the instance of the Form. Attempting to use a form control property or method from the OnInitialize event will fail since the controls are not created.
Procedure MyForm.OnInitialize(): Void Public
{
Caption="Initialized"
}
Load, OnLoad, OnTerminate, OnUnload