Exemple #1
0
        public Form1()
        {
            InitializeComponent();
            //Adds main Screen
            MainScreen FS = new MainScreen();

            this.Controls.Add(FS);
            //Hides Cursor
            Cursor.Hide();
        }
Exemple #2
0
        //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();
        }