How do a make one form stay on top of another?

c#, winforms

Solution

Use the Form.Owner property of your dialog form and set it to the main Form.

Read more here http://msdn.microsoft.com/en-us/library/system.windows.forms.form.owner.aspx

The Owned form will never be displayed behind the Owner Form.

Problem

I have found the `Form.TopMost` property but it puts the form on top of everything, including stuff that isn't part of my app. I've got a suspicion that I'm missing something obvious here. (Is `Form` the proper bases class for a non modal dialog box?)

Original source