Search code examples
c#.netwinformstopmost

Make a Form "more TopMost" than another


I have a WinForms application with 2 Forms. Both are TopMost, but I would want to have one of them to always be on top of the second one.

It's something like "even more TopMost.

Is this possible?

Calling BringToFront() in a timer causes the form to flicker.


Solution

  • Check the SetWindowPos function.

    It might be helpful.


    EDIT:

    After reviewing these answers (1, 2, 3), it's not possible to do such thing.