Ontop of my application only

Bryce Gough

Active member
Joined
Mar 8, 2011
Messages
36
Location
Perth, Australia
Programming Experience
1-3
Hello, I need a form to only be shown on top of all the other forms on my application, but not any others. Any way I could do this easily?
 
Only these two properties control the z-order of windows:
Form.Owner Property (System.Windows.Forms)
Form.TopMost Property (System.Windows.Forms)
It sounds to me you want 'owner' more than 'topmost'. You could even dynamically assign some tool windows owner to the current active form on its Activated event.
In addition modal dialogs are also displayed on top of active window (or owner), and will block access to other windows in app until closed.
 
Back
Top