Handling Task Switching
-
I have a C# app with 4 forms with "TopMost = True" When I perform a task Switch to another app,(using ), these 4 forms remain on top of the application I switch to. How can I either hide them and bring them back when I switch back to this app, or allow the other application to fall on top of these 4 forms? Thank you in advance for any help!! Ray Sotkiewicz C# infant
-
I have a C# app with 4 forms with "TopMost = True" When I perform a task Switch to another app,(using ), these 4 forms remain on top of the application I switch to. How can I either hide them and bring them back when I switch back to this app, or allow the other application to fall on top of these 4 forms? Thank you in advance for any help!! Ray Sotkiewicz C# infant
Form.TopMost
makes theForm
a system modal window. It's supposed to be ontop of all other windows. If you only want it to be a top-level form for your application, then either set theOwner
property of the child forms to the main form of your application, or callAddOwnedForm
on the main form, passing the child forms as parameters. See the documentation for theOwner
property andAddOwnedForm
method in theForm
documentation in the .NET Framework SDK for more information.Microsoft MVP, Visual C# My Articles