I know I'm probably missing something, but I can't understand what. I've just created a test application with 2 forms (Form1, Form2). I've added a button to Form1 with the following code in the OnClick event handler:
Application.CreateForm(TForm2,Form2);
Form2.Show;
When I click the button, a second form is shown as it is meant to, but if I click on Form1 I can't bring it to the front even if it has the property TopMost
set to true.
What am I missing? How can i fix it? I need to show some subforms and a main form that have to be always on top.