private void forgotPasswordLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { forgotPasswordFrm forgotpassword = new forgotPasswordFrm(); forgotpassword.ShowDialog(); if (forgotpassword.DialogResult == DialogResult.Cancel) { MessageBox.Show("User Password Was NOT changed"); } }
private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e) { //Change password forgotPasswordFrm changeCurrentUserPassword = new forgotPasswordFrm(Username); changeCurrentUserPassword.ShowDialog(); if (changeCurrentUserPassword.DialogResult == DialogResult.Cancel) { MessageBox.Show("User Password Was NOT changed"); } changeCurrentUserPassword = null; }