Examples Delphi

When determining which events of a form to define to do what you want, it's good to know the life cycle of a form.
Action Event
Create OnCreate
Show OnShow
Paint OnPaint
Activate OnActivate
ReSize OnResize
Paint OnPaint
Close query OnCloseQuery
Close OnClose
Deactivate OnDeactivate
Hide OnHide
Destroy OnDestroy