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. multiple monitor question

multiple monitor question

Scheduled Pinned Locked Moved C#
question
10 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.
  • L Offline
    L Offline
    likefood
    wrote on last edited by
    #1

    I'm trying to set the desktop location of my program to a certain location on the overall desktop (between all monitors). It comes up in the right location, but only on the monitor from which it was launched. I want it to come up at location (0,0) of the left-most monitor, not (0,0) on the monitor it was launched from. How do I do that (regardless of how the user has set up their monitor locations)? I'm trying to do my own screensaver that spreads itself across all monitors, not just duplicates itself on each. I tried to maximize it, but it maximizes only on one monitor, not all of them...

    -Daniel Typing too fast fro my owngood

    E B C 3 Replies Last reply
    0
    • L likefood

      I'm trying to set the desktop location of my program to a certain location on the overall desktop (between all monitors). It comes up in the right location, but only on the monitor from which it was launched. I want it to come up at location (0,0) of the left-most monitor, not (0,0) on the monitor it was launched from. How do I do that (regardless of how the user has set up their monitor locations)? I'm trying to do my own screensaver that spreads itself across all monitors, not just duplicates itself on each. I tried to maximize it, but it maximizes only on one monitor, not all of them...

      -Daniel Typing too fast fro my owngood

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      Take a look at the Screen class, this has a PrimaryScreen property as well as a Screens property which may be of some help to you.


      If you're stuck in a rut: 1) Consult the documentation* 2) Google it 3) Ask a sensible question 4) Try an ancient ritualistic knowledge summoning (:badger::badger::badger:) dance :jig: 5) Phone :bob: * - If the documentation is MSDN > 6.0 then forget it!

      L 1 Reply Last reply
      0
      • E Ed Poore

        Take a look at the Screen class, this has a PrimaryScreen property as well as a Screens property which may be of some help to you.


        If you're stuck in a rut: 1) Consult the documentation* 2) Google it 3) Ask a sensible question 4) Try an ancient ritualistic knowledge summoning (:badger::badger::badger:) dance :jig: 5) Phone :bob: * - If the documentation is MSDN > 6.0 then forget it!

        L Offline
        L Offline
        likefood
        wrote on last edited by
        #3

        Yeah, I started with that. Not working right. I'll keep on it. I was just hoping that someone knew of a better way...

        -Daniel Typing too fast fro my owngood

        E 1 Reply Last reply
        0
        • L likefood

          Yeah, I started with that. Not working right. I'll keep on it. I was just hoping that someone knew of a better way...

          -Daniel Typing too fast fro my owngood

          E Offline
          E Offline
          Ed Poore
          wrote on last edited by
          #4

          Sorry it wasn't much help, I'll investigate if I get the chance.


          If you're stuck in a rut: 1) Consult the documentation* 2) Google it 3) Ask a sensible question 4) Try an ancient ritualistic knowledge summoning (:badger::badger::badger:) dance :jig: 5) Phone :bob: * - If the documentation is MSDN > 6.0 then forget it!

          1 Reply Last reply
          0
          • L likefood

            I'm trying to set the desktop location of my program to a certain location on the overall desktop (between all monitors). It comes up in the right location, but only on the monitor from which it was launched. I want it to come up at location (0,0) of the left-most monitor, not (0,0) on the monitor it was launched from. How do I do that (regardless of how the user has set up their monitor locations)? I'm trying to do my own screensaver that spreads itself across all monitors, not just duplicates itself on each. I tried to maximize it, but it maximizes only on one monitor, not all of them...

            -Daniel Typing too fast fro my owngood

            B Offline
            B Offline
            BruceN
            wrote on last edited by
            #5

            This link may or may not be of help: http://www.realtimesoft.com/multimon/programming/basics.asp

            1 Reply Last reply
            0
            • L likefood

              I'm trying to set the desktop location of my program to a certain location on the overall desktop (between all monitors). It comes up in the right location, but only on the monitor from which it was launched. I want it to come up at location (0,0) of the left-most monitor, not (0,0) on the monitor it was launched from. How do I do that (regardless of how the user has set up their monitor locations)? I'm trying to do my own screensaver that spreads itself across all monitors, not just duplicates itself on each. I tried to maximize it, but it maximizes only on one monitor, not all of them...

              -Daniel Typing too fast fro my owngood

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              You need to iterate over the Screens collection and find out which screen has the leftmost position. Take a look at the screensaver I wrote with James T Johnson, it's a CP article, and it ran multimonitor. I'm writing an app now that runs on as many monitors as are running, the Screens collection has never let me down.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

              L 1 Reply Last reply
              0
              • C Christian Graus

                You need to iterate over the Screens collection and find out which screen has the leftmost position. Take a look at the screensaver I wrote with James T Johnson, it's a CP article, and it ran multimonitor. I'm writing an app now that runs on as many monitors as are running, the Screens collection has never let me down.

                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                L Offline
                L Offline
                likefood
                wrote on last edited by
                #7

                Before I start searching, can you provide a keyword or URL for me? (for the article)

                -Daniel Typing too fast fro my owngood

                C 1 Reply Last reply
                0
                • L likefood

                  Before I start searching, can you provide a keyword or URL for me? (for the article)

                  -Daniel Typing too fast fro my owngood

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  http://www.codeproject.com/cs/samples/codeprojectscreensaver.asp[^]

                  Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                  L 1 Reply Last reply
                  0
                  • C Christian Graus

                    http://www.codeproject.com/cs/samples/codeprojectscreensaver.asp[^]

                    Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                    L Offline
                    L Offline
                    likefood
                    wrote on last edited by
                    #9

                    Christian, you rock. You've saved me a lot of hassle (considering I'm trying to develope a multimonitor screensaver without the advantage of testing it on multiple monitors of my own, having to rely on the patience of a friend of mine). Once again, you rock. Thank you for sharing your knowledge. May future generations of C# geeks sing your praise.

                    -Daniel Typing too fast fro my owngood

                    C 1 Reply Last reply
                    0
                    • L likefood

                      Christian, you rock. You've saved me a lot of hassle (considering I'm trying to develope a multimonitor screensaver without the advantage of testing it on multiple monitors of my own, having to rely on the patience of a friend of mine). Once again, you rock. Thank you for sharing your knowledge. May future generations of C# geeks sing your praise.

                      -Daniel Typing too fast fro my owngood

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      *grin* I'm glad you found it useful.

                      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

                      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