Exemple #1
0
        private void clientesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultaClientes ConsultaClientes = new ConsultaClientes();

            ConsultaClientes.MdiParent = this;
            ConsultaClientes.Show();
        }
Exemple #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ConsultaClientes obj = new ConsultaClientes();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                txt_codigo.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
                txt_codigo.Focus();
                SendKeys.Send("{TAB}");
            }
        }