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. Application always on top?

Application always on top?

Scheduled Pinned Locked Moved C#
question
6 Posts 4 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.
  • A Offline
    A Offline
    Anthony Mushrow
    wrote on last edited by
    #1

    How can i get my app to always beinfront of all other running programs, even when its not active (Just like the task manager) If your task manager is not always on top go 'Options' --> 'Always on top'

    D 1 Reply Last reply
    0
    • A Anthony Mushrow

      How can i get my app to always beinfront of all other running programs, even when its not active (Just like the task manager) If your task manager is not always on top go 'Options' --> 'Always on top'

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      In your Form's properties, find TopMost and set it to true. Or, in the form's code:

      this.TopMost = true;

      RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        In your Form's properties, find TopMost and set it to true. Or, in the form's code:

        this.TopMost = true;

        RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        C Offline
        C Offline
        cjengler
        wrote on last edited by
        #3

        It may be that I just don't have enough coffee in me yet this morning but out of curiousity, if I have two apps with both set to TopMost which one actually appears on top? Guessing it would be the last one open but I may be wrong.

        D 1 Reply Last reply
        0
        • C cjengler

          It may be that I just don't have enough coffee in me yet this morning but out of curiousity, if I have two apps with both set to TopMost which one actually appears on top? Guessing it would be the last one open but I may be wrong.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          The last one opened gets the top spot in the Z-Order. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            The last one opened gets the top spot in the Z-Order. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            S Offline
            S Offline
            Sebastian Schneider
            wrote on last edited by
            #5

            Out of curiosity (as well): Is Z-Order shared among monitors or does each screen have its own Z-Order? Meaning, if I have 2 programs which are set to top-most and I drag one to another screen, will it "stay" on top of others apps on that screen? Im asking because the program I am writing would be ideal to have on top on a second screen, so I just was curious if setting "top-most" would be enough. As usual, the user can easily disable "top-most" at the press of a menu item ;) Cheers, Sebastian -- Contra vim mortem non est medicamen in hortem.

            D 1 Reply Last reply
            0
            • S Sebastian Schneider

              Out of curiosity (as well): Is Z-Order shared among monitors or does each screen have its own Z-Order? Meaning, if I have 2 programs which are set to top-most and I drag one to another screen, will it "stay" on top of others apps on that screen? Im asking because the program I am writing would be ideal to have on top on a second screen, so I just was curious if setting "top-most" would be enough. As usual, the user can easily disable "top-most" at the press of a menu item ;) Cheers, Sebastian -- Contra vim mortem non est medicamen in hortem.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              If your desktop is shared among all the monitors, then the Z-Order is also shared among them. If not, then each monitor has it's own Z-Order. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              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