private void btn_back_Click(object sender, EventArgs e) { this.Hide(); MainLogin login = new MainLogin(); login.Show(); }
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(); } }