Example #1
0
        private void flowLayoutPanel4_Click(object sender, EventArgs e)
        {
            clientes cli = new clientes();

            cli.TopLevel = false;
            cli.Visible  = true;
            contenedor.Controls.Add(cli);
        }
Example #2
0
        private void flowLayoutPanel1_Click(object sender, EventArgs e)
        {
            clientes cli = new clientes();

            cli.btnAdd.Visible  = false;
            cli.button2.Visible = false;
            if (cli.ShowDialog() == DialogResult.OK)
            {
                txt_codigoCliente.Text = cli.dataGridViewCliente.Rows[cli.dataGridViewCliente.CurrentCell.RowIndex].Cells[0].Value.ToString();
                txt_rncCliente.Text    = cli.dataGridViewCliente.Rows[cli.dataGridViewCliente.CurrentCell.RowIndex].Cells[4].Value.ToString();
                txt_nombreCliente.Text = cli.dataGridViewCliente.Rows[cli.dataGridViewCliente.CurrentCell.RowIndex].Cells[1].Value.ToString();
            }
        }