A form created in the constructor cannot be opened and an error message appears. However, the form can be compiled and started.
The unit of the form constructor was changed manually.
To resolve the problem, delete the code, which was added manually. Work with a form can be executed by the visual constructor.
See also: