示例#1
0
        private void clienteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultarCliente C_cli = new ConsultarCliente();

            C_cli.MdiParent = this;
            C_cli.Show();
        }
示例#2
0
        private void btn_Clientes_Click(object sender, EventArgs e)
        {
            ConsultarCliente C_cli = new ConsultarCliente();

            C_cli.ShowDialog();
            if (C_cli.DialogResult == DialogResult.OK)
            {
                txt_Codigo.Text  = C_cli.dataGridView1.Rows[C_cli.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txt_Cliente.Text = C_cli.dataGridView1.Rows[C_cli.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                txt_Codigo_Cab.Focus();
            }
        }