private void btnMostrar_Click(object sender, EventArgs e) { Logueo logueo = new Logueo(); this.Close(); logueo.Show(); }
private void pictureBox2_Click(object sender, EventArgs e) { Logueo logueo = new Logueo(); if (MessageBox.Show("¿Estás seguro que desea cerrar sesion?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { this.Close(); logueo.Show(); } }