private void btnBuscarEmpleado_Click(object sender, EventArgs e) { BuscarEmpleados busquedaEmps = new BuscarEmpleados(); busquedaEmps.Show(this); //if (res == DialogResult.OK) //{ // try // { //int i; //i = tcEmpleado.SelectedIndex; //tcEmpleado.SelectedIndex = 0; //if(busquedaEmps.idEmpleadoSeleccionado != null) // mtNumeroEmpleado.Text = busquedaEmps.idEmpleadoSeleccionado.ToString(); //mtNumeroEmpleado.Focus(); // SendKeys.Send("{ENTER}"); //tcEmpleado.SelectedIndex = i; //} //catch (Exception ex) // { // MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); //} //} }