Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Handling Task Switching

Handling Task Switching

Scheduled Pinned Locked Moved C#
questioncsharphelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raysot777
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • R raysot777

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Form.TopMost makes the Form 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 the Owner property of the child forms to the main form of your application, or call AddOwnedForm on the main form, passing the child forms as parameters. See the documentation for the Owner property and AddOwnedForm method in the Form documentation in the .NET Framework SDK for more information.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups