コード例 #1
0
ファイル: FrnMain.cs プロジェクト: andichandera/CARWASH
 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);
     }
 }