コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: FrmMain.cs プロジェクト: pirder/sgusyem
        private void 系统管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmUserManager f = new FrmUserManager();

            f.Show();
        }