Exemplo n.º 1
0
 //will show the screen saver
 static void ShowScreensaver(System.Diagnostics.PerformanceCounter counter)
 {
     //loops through all the computer's screens (monitors)
     counter.BeginInit();
     foreach (Screen screen in Screen.AllScreens)
     {
         //creates a form just for that screen
         //and passes it the bounds of that screen
         Form1 screensaver = new Form1(screen.Bounds, counter);
         screensaver.Show();
     }
 }