Create

[server-side event icon] Create() Event

Called before form is created

Applies to: Form

Introduced in KCML version 5.02


>

Create

This event handler is the only place the various Duplicate() methods can be called. The Duplicate() method is the basic method used to duplicate controls onto the form so that forms can be dynamically constructed under program control. See Dynamic Forms for more details of control duplication.

The Create() event handler is also the only place the Import() and EditForm() events can be called. These methods can be used to generate a sub form definition as a string which can be stored in a database and then used to add the controls to a form during its Create() event. This technique is described in User Editable Forms.

Style properties which control the look of a control or dialog may be set during this event handler as the controls have yet to be created. Normally these properties are only set at design time. Once the form has been created at the end of this event the style properties are ignored at runtime.

This event handler is called before any other event handlers within the form, i.e. before the forms Enter() event, if it exists.

See also

Form methods, properties and events.