internal void openForm(Panel Dest, inquiry2 myInq) //inquary overload { splRight.Panel2.Controls.Clear(); splRight.Panel1.Controls.Clear(); Dest.Controls.Clear(); myInq.TopLevel = false; myInq.ShowInTaskbar = false; myInq.ControlBox = false; myInq.Text = ""; myInq.FormBorderStyle = FormBorderStyle.None; Dest.Controls.Add(myInq); myInq.Show(); }
private void toolStripButton6_Click(object sender, EventArgs e) { inquiry2 newInq = new inquiry2(this); openForm(splMain1.Panel1, newInq); }