private void forgetPasswordButton_Click(object sender, EventArgs e) { Enabled = false; fpf = new ForgetPasswordForm(); fpf.FormClosed += new FormClosedEventHandler(forgetPasswordForm_Closed); fpf.ShowDialog(); }
private void forgetPasswordForm_Closed(object sender, EventArgs e) { fpf = null; Clipboard.Clear(); Enabled = true; }