private void patentAddPanel_Click(object sender, EventArgs e) { frm[fmusermanggerindex] = null; frm[fmselectindex] = null; if (frm[fmaddindex] != null) { frm[fmaddindex].Activate(); return; } fmadd = new FrmAdd(); frm[fmaddindex] = fmadd; fmadd.WindowState = FormWindowState.Maximized; //去掉边框 fmadd.FormBorderStyle = FormBorderStyle.None; fmadd.MdiParent = this; //设置新窗体的Parent fmadd.Parent = mdiPanel; fmadd.Show(); }
//尝试一下是否拉去成功 private void button1_Click(object sender, EventArgs e) { FrmAdd f = new FrmAdd(); f.Show(); }