private void btnPassReset_Click(object sender, EventArgs e) { Form frmPassword = new frmPassword(); DialogResult dlg = frmPassword.ShowDialog(); if (dlg != DialogResult.OK) { SharedData.sPassword = ""; } return; }