I have a small problem, I think it is stupid, but I don't find a way to fix it.

In my applications (MDI applications), I display a progress bar for long running reports and process.

So, I have a form (non MDI) that I show with a progress bar.
The problem is that, if I use another application (like a browser, or any other app), the progress bar is recurrently showed in top of all applications.

Due to all routines, the progress form, is sometime hidden, sometime shown (several call to routines that shows the form, then once the work is done, it hides it).

This is annoying, as I get back in front the progress bar over other applications.

So, is there a way to have only the form in top, only on his own application?

I tried all solutions, with SetWindowPos, Topmost, non top most, having the progress form as a child form and so, not outside, etc...
But no success till now.

If someone has an idea, I can take it, to make some tests.

I think that I forget something stupid somewhere, but I can't figure what.

Thanks in advance