Ejemplo n.º 1
0
 public SettingsForm()
 {
     InitializeComponent();
     Screensaver.SetFields();
     foreach (string name in controls.Keys)
     {
         Label label = new Label();
         label.Text = name;
         flowLayoutPanel1.Controls.Add(label);
         flowLayoutPanel1.Controls.Add(controls[name]);
     }
 }
Ejemplo n.º 2
0
        static void ShowScreenSaver()
        {
            Rectangle bounds = new Rectangle();

            foreach (Screen s in Screen.AllScreens)
            {
                bounds = Rectangle.Union(bounds, s.Bounds);
            }

            Screensaver screenForm = new Screensaver(bounds);

            screenForm.Show();
        }