예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //launch the Main Screen
            MainScreen ms = new MainScreen();

            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);

            this.Controls.Add(ms);
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //launch the Main Screen
            ResultsScreen rs = new ResultsScreen();

            MainScreen ms = new MainScreen();

            this.Controls.Add(ms);
        }
예제 #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //launch the Main Screen
            UserControl1 ss = new UserControl1();
            MainScreen   ms = new MainScreen();


            this.Controls.Add(ms);
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)      // play again method, clear list
        {
            Form1.userGuesses.Clear();

            Form f = this.FindForm();

            f.Controls.Remove(this);

            MainScreen ms = new MainScreen();   // return to mainscreen

            f.Controls.Add(ms);

            this.Refresh();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            MainScreen ms = new MainScreen();

            this.Controls.Add(ms);
        }