コード例 #1
0
        private void Cons_FormClosed(object sender, FormClosedEventArgs e)
        {
            Consulta_Articulos cons = new Consulta_Articulos();

            TXTPROD.Text   = VariablesGlobales.Nombreprod;
            TXTCDALFA.Text = VariablesGlobales.CodAlfa;
        }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 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;
         }
     }
 }