Beispiel #1
0
 private void FrnMain_Load(object sender, EventArgs e)
 {
     try
     {
         this.Left   = this.Top = 0;
         this.Width  = Screen.PrimaryScreen.WorkingArea.Width;
         this.Height = Screen.PrimaryScreen.WorkingArea.Height;
         Screen screen = AddFunc.GetSecondaryScreen();
         //this.Location = screen.WorkingArea.Location;
         //this.Size = new Size(screen.WorkingArea.Width, screen.WorkingArea.Height);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }