In the Delphi 10.1 Berlin IDE, with a VCL Form application project, in the Project Options dialog, I have these settings:
Now I want the formOptions
Form to be created BEFORE the FormMain
Form while keeping the FormMain
Form as the Main Form. The reason is: The main form could load data in its FormCreate
procedure (where formOptions
still has not been created), but to process these data it needs the settings from the formOptions
form.
But as soon as I drag the formOptions
item to the top of the list, also the main form combobox above changes to formOptions
!
So how can I make the formOptions
Form to be created BEFORE the FormMain
Form while keeping the FormMain
Form as the Main Form?
DPR
project file? – user1580348nil
asAOwner
because the main form has not yet been created:formOptions := TformOptions.Create(nil);
. Is usingnil
as owner a correct procedure and do I have to destroyformOptions
manually at program end? – user1580348Application
as the Owner. If you use anil
Owner instead, you must manuallyFree
the Form. – Remy Lebeau