private void label2_Click(object sender, EventArgs e) { this.Hide(); Login_Form login_Form = new Login_Form(); login_Form.Show(); }
private void logoutBtn_Click(object sender, EventArgs e) { var confirmResult = MessageBox.Show("Log out ?", "Confirm logout!!", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (confirmResult == DialogResult.Yes) { Login_Form login_Form = new Login_Form(); this.Close(); login_Form.Show(); } }