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