private void toolStripMenuItem1_Click(object sender, EventArgs e) { var upForm = new frmEditData(); contextMenuStrip1.Enabled = false; upForm.ShowDialog(); DisablePasswordItems(); contextMenuStrip1.Enabled = true; }