private void dgvProducto_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { FrmPresentaciones f = new FrmPresentaciones(); f.lblProducto.Text = dgvProducto.CurrentRow.Cells[3].Value.ToString(); FrmPresentaciones.IDProducto = dgvProducto.CurrentRow.Cells[0].Value.ToString(); f.ShowDialog(); txtBuscador.Focus(); } }
private void verPresentacionesToolStripMenuItem_Click(object sender, EventArgs e) { try { FrmPresentaciones f = new FrmPresentaciones(); f.lblProducto.Text = dgvProducto.CurrentRow.Cells[3].Value.ToString(); FrmPresentaciones.IDProducto = dgvProducto.CurrentRow.Cells[0].Value.ToString(); f.ShowDialog(); txtBuscador.Focus(); } catch (Exception ex) { MessageBox.Show(ex.Message, "FactuTED", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }