Beispiel #1
0
        private void buttonX2_Click(object sender, EventArgs e)
        {
            Consulta_Articulo doForm = new Consulta_Articulo();

            if (doForm.ShowDialog() == DialogResult.OK)
            {
                codart.Text = doForm.codigo.Text;
                canart.Focus();
                SendKeys.Send("{enter}");
            }
        }
Beispiel #2
0
 private void codart_KeyDown(object sender, KeyEventArgs e)
 {
     switch (e.KeyCode)
     {
     case Keys.Enter:
         if (string.IsNullOrEmpty(codart.Text.Trim()))
         {
             Consulta_Articulo doForm = new Consulta_Articulo();
             if (doForm.ShowDialog() == DialogResult.OK)
             {
                 codart.Text = doForm.codigo.Text;
                 codart.Focus();
                 SendKeys.Send("{enter}");
             }
             break;
         }
         else
         {
             return;
         }
     }
 }
        private void cONSULTADEARTIICULOToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Consulta_Articulo obj = new Consulta_Articulo();

            obj.ShowDialog();
        }