private void carsToolStripMenuItem_Click(object sender, EventArgs e) { Data.ClientID = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString(); cars cars = new cars(); cars.MdiParent = ActiveForm; cars.Show(); }
private void toolStripButton3_Click(object sender, EventArgs e) { clients tempChild = (clients)ActiveMdiChild; Data.ClientID = tempChild.dataGridView1[0, tempChild.dataGridView1.CurrentRow.Index].Value.ToString(); cars cars = new cars(); cars.MdiParent = ActiveForm; cars.Show(); }