private void exitToolStripMenuItem_Click(object sender, EventArgs e) { this.ClosingFromExitMenu = true; this.Close(); }