1

子窗体前面显示的MDI窗体的面板控件............

private void contentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCollection fc = Application.OpenForms;
            foreach (Form frm in fc)
            {
                if (frm.Name.ToLower() == "frmshortcutkeys")
                {
                    return;
                }
            }
            frmShortcutKeys objfrmShortcutKeys = new frmShortcutKeys();
            objfrmShortcutKeys.MdiParent = this;
            objfrmShortcutKeys.Show();
        }
4

0 回答 0