Using Fore.NET Forms

Problem Description

A form created in the constructor does not open and an error message is displayed. However, the form can be compiled and started.

Cause

Perhaps, the form constructor unit was changed manually.

Solution

Check the form constructor unit. The unit code should not use properties and methods that can be available only after initialization of the form and all the components. It is allowed to reorder strings generated automatically by the form constructor when form contents changes and components are set up in the objects inspector.

It is not recommended to manually change form constructor unit code, all work with a form should be executed only in the visual constructor.

See also:

Fore.NET Language Features