private void cONSULTACOMPRAToolStripMenuItem_Click_1(object sender, EventArgs e) { Consulta_Compra obj = new Consulta_Compra(); //obj.txtusuario.Text = txtusu.Text; obj.ShowDialog(); }
private void button4_Click(object sender, EventArgs e) { Consulta_Compra doForm = new Consulta_Compra(); if (doForm.ShowDialog() == DialogResult.OK) { txtcodigo.Text = doForm.codigo.Text; //canart.Focus(); SendKeys.Send("{enter}"); } }