private void Cons_FormClosed(object sender, FormClosedEventArgs e)
        {
            Consulta_Articulos cons = new Consulta_Articulos();

            TXTPROD.Text   = VariablesGlobales.Nombreprod;
            TXTCDALFA.Text = VariablesGlobales.CodAlfa;
        }
 private void TXTPROD_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode.ToString() == "F1")
     {
         Consulta_Articulos cons = new Consulta_Articulos();
         cons.MdiParent = this.ParentForm;
         cons.Show();
         cons.FormClosed += Cons_FormClosed;
     }
 }
 private void TXTPROD_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode.ToString() == "F1")
     {
         DialogResult       resultado = new DialogResult();
         Consulta_Articulos cons      = new Consulta_Articulos();
         resultado = cons.ShowDialog();
         if (resultado == DialogResult.OK)
         {
             TXTPROD.Text = cons.nombrepro;
         }
     }
 }