private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            IngresoModificacionProducto modificar = new IngresoModificacionProducto();

            try
            {
                modificar.textBox1.Text       = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                modificar.txtCodigo.Text      = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                modificar.txtNomProducto.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                modificar.txtDescripcion.Text = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                modificar.txtCantidad.Text    = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
                modificar.txtPrecio.Text      = dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString();
                modificar.txtNum.Text         = dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString();

                modificar.Show();
                modificar.button1.Visible = false;
                modificar.button3.Visible = true;
                modificar.Visible         = true;
                Visible = false;
                modificar.comboBox2.Visible = true;
                modificar.label9.Visible    = true;
            }
            catch
            {
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            IngresoModificacionProducto In = new IngresoModificacionProducto();

            In.Show();
            this.Close();
            In.button1.Visible = true;
            In.button3.Visible = false;
            In.Visible         = true;
        }