Occurs when the form is loaded.
Use this event to write code that performs any initialization when the form is loaded.
The OnLoad event is fired after the form has been created but before the data for the form has been read from the feature. If you need to reference the Fields property of the Form object during an initialization, use the OnSetActive event instead.