示例#1
0
 public Form1()
 {
     InitializeComponent();
     mainScreen ms = new mainScreen();
     ms.Location = new Point(this.Width - ms.Width / 2, (this.Height - ms.Height) / 2);
     this.Controls.Add(ms);
 }
示例#2
0
        public Form1()
        {
            InitializeComponent();
            mainScreen ms = new mainScreen();

            ms.Location = new Point(this.Width - ms.Width / 2, (this.Height - ms.Height) / 2);
            this.Controls.Add(ms);
        }
示例#3
0
        private void tryAgainButton_Click(object sender, EventArgs e)
        {
            Refresh();
            Form f = this.FindForm();
            f.Controls.Remove(this);

            mainScreen ms = new mainScreen();
            ms.Location = new Point((f.Width - ms.Width)/ 2, (f.Height - ms.Height) / 2);
            f.Controls.Add(ms);
        }
示例#4
0
        private void tryAgainButton_Click(object sender, EventArgs e)
        {
            Refresh();
            Form f = this.FindForm();

            f.Controls.Remove(this);

            mainScreen ms = new mainScreen();

            ms.Location = new Point((f.Width - ms.Width) / 2, (f.Height - ms.Height) / 2);
            f.Controls.Add(ms);
        }