private void btnSelProducto_Click(object sender, EventArgs e) { frmCatProductos prod = new frmCatProductos(true); //activa boton seleccionar prod.ShowDialog(); txtCodigo.Text = prod.codigo; txtCodigo.Focus(); SendKeys.Send("{ENTER}"); }