Contents
- Index
- Previous
- Next
OnCreate event
Declaration
property OnCreate: TNotifyEvent;
Description
Occurs when the control is first instantiated.
This event indicates that the control is now ready to accept commands. Use the OnCreate event to initialize the control at run time.
Most properties and all methods are not valid until this event has been fired. If you attempt to access some properties or call any methods before the event has fired, an error result is returned.
A complementary property, Busy, returns True while a document is being initialized. After the OnCreate event has fired, the Busy property returns False.
Note: If the control is hidden, the control is not initialized until the control is made visible.