private void modifyWeekToolStripMenuItem_Click(object sender, EventArgs e) { if (weekView == null) { weekView = new Weeks(); weekView.TT = currentTT; } this.Enabled = false; //focus on weekView form. Wait for a response. weekView.ShowDialog(); this.Enabled = true; weekView = null; //clears the value from the heap }