Пример #1
0
        private void productosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultaProductos ConsultaProductos = new ConsultaProductos();

            ConsultaProductos.MdiParent = this;
            ConsultaProductos.Show();
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ConsultaProductos obj = new ConsultaProductos();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                codigoProducto.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
                codigoProducto.Focus();
                SendKeys.Send("{TAB}");
            }
        }