Example #1
0
 //returns to the first User Form
 private void backButton_Click(object sender, EventArgs e)
 {
     Form f = this.FindForm();
     f.Controls.Remove(this);
     MainScreen ms = new MainScreen();
     f.Controls.Add(ms);
 }
Example #2
0
        //returns users to home page
        private void button1_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();
            f.Controls.Remove(this);

            MainScreen ms = new MainScreen();
            f.Controls.Add(ms);
            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
        }
Example #3
0
        //returns to the first User Form
        private void backButton_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();

            f.Controls.Remove(this);
            MainScreen ms = new MainScreen();

            f.Controls.Add(ms);
        }
Example #4
0
        public Form1()
        {
            InitializeComponent();

            MainScreen ms = new MainScreen();
            this.Controls.Add(ms);

            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
            ms.Show();
        }
Example #5
0
        //returns users to home page
        private void button1_Click(object sender, EventArgs e)
        {
            Form f = this.FindForm();

            f.Controls.Remove(this);

            MainScreen ms = new MainScreen();

            f.Controls.Add(ms);
            ms.Location = new Point((this.Width - ms.Width) / 2, (this.Height - ms.Height) / 2);
        }
Example #6
0
        public Form1()
        {
            InitializeComponent();

            MainScreen ms = new MainScreen();

            this.Controls.Add(ms);

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