private void button2_Click(object sender, EventArgs e) { this.Dispose(); Pruebas p = new Pruebas(Id, this); p.MdiParent = this.MdiParent; p.Show(); }
private void button3_Click_1(object sender, EventArgs e) { int pos = 0; try { pos = dataGridView1.CurrentCell.RowIndex; } catch { MessageBox.Show("Elija a alguien de la tabla"); return; } int Id = (int)dataGridView1[7, pos].Value; Pruebas p = new Pruebas(Id, this); p.MdiParent = this.MdiParent; p.Show(); }