Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }