private void exitToolStripMenuItem_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Se cerrará la agenda. Está segurx?", "Cerrar", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { taskControler.Stop(); this.notificationIcon.Dispose(); Application.Exit(); } else { this.Close(); } }