private void clienteToolStripMenuItem1_Click(object sender, EventArgs e) { ConsultarClientes ConCli = new ConsultarClientes(); //Se crea la instancia ConCli.MdiParent = this; //Se especifica que pertenece al contenedor mdi para que se muestre ahi. ConCli.Show(); //Se muestra. }
private void clienteToolStripMenuItem1_Click(object sender, EventArgs e) { ConsultarClientes conCli = new ConsultarClientes(); conCli.MdiParent = this; conCli.Show(); }
private void btnClientes_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(); } }
private void btnCliente_Click_1(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(); btnTecnico.Focus(); } dataGridView1.DataSource = LLenarDataGV("Servicio").Tables[0]; }