private void gruposArticulosToolStripMenuItem_Click(object sender, EventArgs e) { ConsGruArt obj = new ConsGruArt(); obj.MdiParent = this; obj.Show(); }
private void ConsGruArt_Click(object sender, EventArgs e) { ConsGruArt obj = new ConsGruArt(); if (obj.ShowDialog() == DialogResult.OK) { GruArt.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString(); } }
public override void Consultar() { ConsGruArt obj = new ConsGruArt(); if (obj.ShowDialog() == DialogResult.OK) { codigo.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString(); codigo.Focus(); SendKeys.Send("{TAB}"); } }