private void button1_Click(object sender, EventArgs e) { FichaADOContacto fadoc = new FichaADOContacto(); fadoc.MdiParent = this.MdiParent; fadoc.Show(); }
private void butModificar_Click(object sender, EventArgs e) { int cod = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()); FichaADOContacto fadoc = new FichaADOContacto(); fadoc.MdiParent = this.MdiParent; fadoc.cs = cod; fadoc.Show(); }