multiple monitor question
-
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
-
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
Take a look at the
Screen
class, this has aPrimaryScreen
property as well as aScreens
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!
-
Take a look at the
Screen
class, this has aPrimaryScreen
property as well as aScreens
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!
-
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
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!
-
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
This link may or may not be of help: http://www.realtimesoft.com/multimon/programming/basics.asp
-
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
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
-
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
-
Before I start searching, can you provide a keyword or URL for me? (for the article)
-Daniel Typing too fast fro my owngood
http://www.codeproject.com/cs/samples/codeprojectscreensaver.asp[^]
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
http://www.codeproject.com/cs/samples/codeprojectscreensaver.asp[^]
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
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
-
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
*grin* I'm glad you found it useful.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog