Control - Initialize Event

Fired after a component has been realized for the first time

Member of Control (PRIM_CTRL)


The Initialize event happens when a component is first realized.
When a Form or WebPage is first executed, the CreateInstance event is fired. When all processing for this is complete, the Form or WebPage is shown for the first time.
Once this completes the Initialize event is fired.
If you use the Initialize event to load data, the screen will appear to jump.  As a general rule, the loading of initial state is best done during the CreateInstance event, before the application appears on the screen.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020