public Form1() { InitializeComponent(); //Adds main Screen MainScreen FS = new MainScreen(); this.Controls.Add(FS); //Hides Cursor Cursor.Hide(); }
//Exit Button private void mainMenuButton_Click(object sender, EventArgs e) { Form1.stopWatch.Reset(); Form f = this.FindForm(); f.Controls.Remove(this); MainScreen Sc = new MainScreen(); f.Controls.Add(Sc); Sc.Focus(); }