private void btnBack_Click(object sender, EventArgs e) { this.Hide(); Form_Login nextForm = new Form_Login(); nextForm.Show(); this.txtUsername.Clear(); this.cmbboxSecretQuestion.Text = ""; this.txtSecretAnswer.Clear(); this.txtShowPassword.Clear(); this.chckboxSecretAnswer.Checked = false; }
private void toolstrip_Logout_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Are you sure you want to log-out ?", "ATTENTION", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { this.Hide(); var myForm = new Form_Login(); myForm.Show(); } }