private void btnSalir_Click(object sender, EventArgs e) { if (MessageBox.Show("¿Desea cerrar sesion?", "Confirmacion", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { frmLogIn ver = new frmLogIn(); ver.Show(); this.Close(); } }