B
bbla32
A really weird problem:
Form1 is the main form. Clicking on its button displays:
Form2 as a modal form (ShowDialog). Clicking on its button has the
purpose to close this form and display Form3. The problem is that
Form3 is in the background. It is enough to change showing Form2 from
ShowDialog to Show and the issue disappears.
I've tested various methods, including FormWindowState, BringToFront
as well as WinAPI: SetWindowPos, SetForegroundWindow... Nothing helps!
Form3 is still in the background.
Form1 is the main form. Clicking on its button displays:
Form2 as a modal form (ShowDialog). Clicking on its button has the
purpose to close this form and display Form3. The problem is that
Form3 is in the background. It is enough to change showing Form2 from
ShowDialog to Show and the issue disappears.
I've tested various methods, including FormWindowState, BringToFront
as well as WinAPI: SetWindowPos, SetForegroundWindow... Nothing helps!
Form3 is still in the background.