Exemple #1
0
        public Form1()
        {
            InitializeComponent();
            logInScreen lis = new logInScreen();

            this.Controls.Add(lis);
        }
        private void logoutButton_Click(object sender, EventArgs e)
        {
            //logInScreen lis = new logInScreen();
            //this.Controls.Add(lis);

            Form f = this.FindForm();
            f.Controls.Remove(this);
            logInScreen lis = new logInScreen();
            f.Controls.Add(lis);
            lis.Location = new Point((f.Width - lis.Width) / 2, (f.Height - lis.Height) / 2);
        }
        private void logoutButton_Click(object sender, EventArgs e)
        {
            //logInScreen lis = new logInScreen();
            //this.Controls.Add(lis);

            Form f = this.FindForm();

            f.Controls.Remove(this);
            logInScreen lis = new logInScreen();

            f.Controls.Add(lis);
            lis.Location = new Point((f.Width - lis.Width) / 2, (f.Height - lis.Height) / 2);
        }
Exemple #4
0
 public Form1()
 {
     InitializeComponent();
     logInScreen lis = new logInScreen();
     this.Controls.Add(lis);
 }