Exemplo n.º 1
0
        private void ProductoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarProductos ConSul = new ConsultarProductos();

            ConSul.MdiParent = this;
            ConSul.Show();
        }
Exemplo n.º 2
0
        private void BtnProducto_Click(object sender, EventArgs e)
        {
            ConsultarProductos Conpro = new ConsultarProductos();

            Conpro.ShowDialog();
            if (Conpro.DialogResult == DialogResult.OK)
            {
                txtCodigoPro.Text = Conpro.dataGridView1.Rows[Conpro.dataGridView1.CurrentRow.Index].Cells[0].Value.ToString();
                txtDesPro.Text    = Conpro.dataGridView1.Rows[Conpro.dataGridView1.CurrentRow.Index].Cells[1].Value.ToString();
                txtPreciopro.Text = Conpro.dataGridView1.Rows[Conpro.dataGridView1.CurrentRow.Index].Cells[2].Value.ToString();
                txtcantidad.Focus();
            }
        }