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}"); } }
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(); }