int rand = randNum.Next(0, 4); // 1-4 because there will be 4 quadrants #endregion Fields #region Constructors public Form1() { InitializeComponent(); MainScreen ms = new MainScreen(); ms.Location = new Point((Screen.PrimaryScreen.Bounds.Width - ms.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - ms.Height) / 2); this.Controls.Add(ms); }
public Form1() { InitializeComponent(); MainScreen ms = new MainScreen(); ms.Location = new Point((Screen.PrimaryScreen.Bounds.Width - ms.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - ms.Height) / 2); this.Controls.Add(ms); }