コード例 #1
0
        private void btn_back_Click(object sender, EventArgs e)
        {
            this.Hide();
            MainLogin login = new MainLogin();

            login.Show();
        }
コード例 #2
0
        private void menu_logout_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Do You Want to Logout?", "Logout", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                this.Hide();
                MainLogin login = new MainLogin();
                login.Show();
            }
        }