private void btnInspection_Click(object sender, EventArgs e) { pnlOps.Visible = false; InspectionForm form = new InspectionForm(userid.ToString()); form.TopLevel = false; pnlPage.Controls.Add(form); form.Show(); }