Well, I came here because I do not know what to do anymore, I tried everything ... I need to leave my FORM2 always visible (above) of all open programs on windows. My program did the following:
Form1 has a BUTTON when I click on it it executes the following command:
Form2.Show;
In the ONSHOW of FORM2 I put the following:
SetWindowPos(Form2.handle, HWND_TOPMOST, Form2.Left, Form2.Top,Form2.Width, Form2.Height, 0);
And the FormStyle property of Form2, I changed it to fsStayOnTop. Even so, when I call FORM2, it's no use, it's not always visible, if I open WORD for example, it's already behind. What am I doing wrong ? Any idea ?