Sonjli 6 Posted February 24, 2023 Hello, I need to override the constructor of the main form of my FMX application. The problem is that the mechanism that fmx uses to select the main form is very strange and the constructor of the main form is never called. Anyone knows why this behaviour? Thanks! Eddy Share this post Link to post
programmerdelphi2k 237 Posted February 24, 2023 (edited) I think that is the same than VCL... Form1 is a Main-Form in project, as expected! program Project1; uses System.StartUpCopy, FMX.Forms, Unit1 in 'Unit1.pas' {Form1}, Unit2 in 'Unit2.pas' {Form2}; {$R *.res} begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end. Edited February 24, 2023 by programmerdelphi2k 1 Share this post Link to post
David Heffernan 2345 Posted February 24, 2023 13 minutes ago, Sonjli said: The problem is that the mechanism that fmx uses to select the main form is very strange and the constructor of the main form is never called This statement is incorrect unless I am very mistaken. Please show your main form code and the project file. 1 Share this post Link to post
Sonjli 6 Posted February 24, 2023 I am very sorry. I will close this post. I found my horrible mistake... shame on me Share this post Link to post