private void button1_Click(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; Fases f = new Fases(id, this); f.MdiParent = this.MdiParent; f.Show(); }
private void button1_Click(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; Fases f = new Fases(id, this); f.MdiParent = this.MdiParent; f.Show(); }
public Pruebas(int Id, Fases f) { InitializeComponent(); this.Id = Id; this.f = f; }