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