Example #1
0
 static void ShowScreenSaver()
 {
     foreach (Screen screen in Screen.AllScreens)
     {
         ScreenSaverForm screensaver = new ScreenSaverForm(screen);
         screensaver.Show();
     }
 }
        private void btnPreview_Click(object sender, EventArgs e)
        {
            Form preview = new ScreenSaverForm(System.Windows.Forms.Screen.PrimaryScreen);

            preview.Show();
        }