Multiple Monitor question
-
"How to develop a screen saver in C# By Rakesh Rajan" is the template I've been using to for multiple monitor support, but when i try to implement it into my code only one monitor pops up with screensaver and when i do either mouse event or keyboard event that monitors screensaver kills and then the other monitor pops up with screensaver. I'm guessing that it won't load next screens form until current form is termated. Here is the code... for(int i=Screen.AllScreens.GetLowerBound(0); i<=Screen.AllScreens.GetUpperBound(0); i++) Application.Run(new ScreenSaverForm(i)); Do i use a thread or something.. been workin on this last part of project for a while now.. any suggestions FYI.. I'm not rich. My desktops motherboard died and i just plugged monitor into back of laptop. Codemonkey pgf_codemonkey@hotmail.com
-
"How to develop a screen saver in C# By Rakesh Rajan" is the template I've been using to for multiple monitor support, but when i try to implement it into my code only one monitor pops up with screensaver and when i do either mouse event or keyboard event that monitors screensaver kills and then the other monitor pops up with screensaver. I'm guessing that it won't load next screens form until current form is termated. Here is the code... for(int i=Screen.AllScreens.GetLowerBound(0); i<=Screen.AllScreens.GetUpperBound(0); i++) Application.Run(new ScreenSaverForm(i)); Do i use a thread or something.. been workin on this last part of project for a while now.. any suggestions FYI.. I'm not rich. My desktops motherboard died and i just plugged monitor into back of laptop. Codemonkey pgf_codemonkey@hotmail.com
Application.Run
is a blocking call that starts the message pump and wants until the main form is closed. Since this is in a loop, when the main form is close then the next iteration of your loop executes. You should instead design your form to span multiple monitors (seeSystemInformation.VirtualScreen
).Microsoft MVP, Visual C# My Articles
-
Application.Run
is a blocking call that starts the message pump and wants until the main form is closed. Since this is in a loop, when the main form is close then the next iteration of your loop executes. You should instead design your form to span multiple monitors (seeSystemInformation.VirtualScreen
).Microsoft MVP, Visual C# My Articles
Heath, How would you push applications to a specific monitor and not just stretch the screen space? This sounds interesting for a project I'm doing. Regards, Eric C. Tomlinson Silence is golden, so shut the heck up!
-
Heath, How would you push applications to a specific monitor and not just stretch the screen space? This sounds interesting for a project I'm doing. Regards, Eric C. Tomlinson Silence is golden, so shut the heck up!
You can use the
Screen
class. SeeScreen.AllScreens
, which is a static property that returns aScreen[]
array.Microsoft MVP, Visual C# My Articles
-
You can use the
Screen
class. SeeScreen.AllScreens
, which is a static property that returns aScreen[]
array.Microsoft MVP, Visual C# My Articles
Thanks for the great hint. I appreciate it. Regards, Eric C. Tomlinson