private void Button1_Click(object sender, EventArgs e) { if (MessageBox.Show("Se cerrarĂ¡ esta ventana, desea continuar? ", "Aviso", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes) { ConsultaEmpleado empleado = new ConsultaEmpleado(); this.Hide(); empleado.Show(); } }
private void EmpleadoToolStripMenuItem_Click(object sender, EventArgs e) { ConsultaEmpleado CE = new ConsultaEmpleado { MdiParent = this }; CE.Show(); }