コード例 #1
0
ファイル: LogIn.cs プロジェクト: JackMaca/Log-In
 //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);
 }
コード例 #2
0
ファイル: About.cs プロジェクト: JackMaca/Log-In
        //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);
        }
コード例 #3
0
ファイル: LogIn.cs プロジェクト: JackMaca/Log-In
        //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);
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: JackMaca/Log-In
        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();
        }
コード例 #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);
        }
コード例 #6
0
ファイル: Form1.cs プロジェクト: JackMaca/Log-In
        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();
        }