private void toolStripButton7_Click(object sender, EventArgs e) { try { ContratoActual.CODIGO_CONTRATO = dg_Contratos.Rows[dg_Contratos.CurrentCell.RowIndex].Cells[0].Value.ToString(); Form childFormSalidas = new frmSalidas(); childFormSalidas.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }