private void searchDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { string passIDNO; passIDNO = searchDataGridView.Rows[e.RowIndex].Cells[1].Value.ToString(); Form1 form1 = new Form1(passIDNO, 1); form1.button1_Click(sender, e); // Retrieves data of Customer to Form1 //form1.MDIParent = ???? form1.Show(); }