예제 #1
0
        private void ClienteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultarClientes Consultacli = new ConsultarClientes();

            Consultacli.MdiParent = this;
            Consultacli.Show();
        }
예제 #2
0
        private void BtnCliente_Click(object sender, EventArgs e)
        {
            ConsultarClientes Concli = new ConsultarClientes();

            Concli.ShowDialog();
            if (Concli.DialogResult == DialogResult.OK)
            {
                txtCodigoCli.Text = Concli.dataGridView1.Rows[Concli.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtcliente.Text   = Concli.dataGridView1.Rows[Concli.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();

                txtCodigoPro.Focus();
            }
        }