private void fileMenu_Click(object sender, EventArgs e) { FrmUserManager um = new FrmUserManager(); um.WindowState = FormWindowState.Maximized; //去掉边框 um.FormBorderStyle = FormBorderStyle.None; um.MdiParent = this; //设置新窗体的Parent um.Parent = panel2; um.Show(); }
private void 用户管理ToolStripMenuItem_Click(object sender, EventArgs e) { frm[fmselectindex] = null; frm[fmaddindex] = null; if (frm[fmusermanggerindex] != null) { frm[fmusermanggerindex].Activate(); return; } fmusermanager = new FrmUserManager(); frm[fmusermanggerindex] = fmusermanager; fmusermanager.WindowState = FormWindowState.Maximized; //去掉边框 fmusermanager.FormBorderStyle = FormBorderStyle.None; fmusermanager.MdiParent = this; //设置新窗体的Parent fmusermanager.Parent = mdiPanel; fmusermanager.Show(); }
private void 系统管理ToolStripMenuItem_Click(object sender, EventArgs e) { FrmUserManager f = new FrmUserManager(); f.Show(); }