private void button1_Click(object sender, EventArgs e) { FrmAddMarcas fed = new FrmAddMarcas(); this.Hide(); fed.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { int rowindex = dataGridView1.CurrentCell.RowIndex; int columnindex = dataGridView1.CurrentCell.ColumnIndex; FrmAddMarcas fed = new FrmAddMarcas(); this.Hide(); fed.values = Int32.Parse(dataGridView1.Rows[rowindex].Cells[columnindex].Value.ToString()); fed.ShowDialog(); }