private void выходToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("Хотите выйти?", " Внимание!", MessageBoxButtons.YesNo) == DialogResult.Yes) { this.Hide(); StartWindow window = new StartWindow(); window.Show(); } }