private void productosToolStripMenuItem1_Click(object sender, EventArgs e) { ConsultarProducto Consul = new ConsultarProducto(); Consul.MdiParent = this; Consul.Show(); }
private void BtnProd_Click(object sender, EventArgs e) { ConsultarProducto consulProd = new ConsultarProducto(); consulProd.ShowDialog(); if (consulProd.DialogResult == DialogResult.OK) { txtCodigo.Text = consulProd.dataGridView1.Rows[consulProd.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString(); txtDescripcion.Text = consulProd.dataGridView1.Rows[consulProd.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString(); txtPrecio.Text = consulProd.dataGridView1.Rows[consulProd.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString(); txtCantidad.Focus(); } }
private void BtnConsultar_Click(object sender, EventArgs e) { ConsultarProducto consultProd = new ConsultarProducto(); consultProd.Show(); }