[EDIT]
After the clarifications in comments below:
I don't think anything you really need to use
Topmost
. Now I can see that your concerns are two different things 1) Z-order behavior of forms, 2) showing a form in a task bar.
First of all, you most likely forgot one very important thing related to top order which is often overlooked (probably because documentation is unclear about it). Try this:
myForm.Owner = myMainForm;
myForm.ShowInTaskbar = false;
If this code is to be written in the class of
myForm
, replace
myForm.*
with
this.*
. Even if this is not exactly what you want, do it and then see how it behaves. It will either give you a final solution or will help you to understand how things work and will leads you to the solution.
—SA