private void buttonX2_Click(object sender, EventArgs e) { Consulta_Factura doForm = new Consulta_Factura(); if (doForm.ShowDialog() == DialogResult.OK) { numero.Text = doForm.codigo.Text; numero.Focus(); SendKeys.Send("{enter}"); } }
private void cONSULTAFACTURAToolStripMenuItem_Click(object sender, EventArgs e) { Consulta_Factura obj = new Consulta_Factura(); obj.ShowDialog(); }