我正在尝试 Enable = false to menustrip .. 但是代码正在执行但无法禁用菜单
MenuStrip ms = (MenuStrip)frm_MDI.objMdi.Controls["msMainMenu"];
foreach (ToolStripMenuItem tmm in ms.Items)
{
tmm.Enabled = false;
}
我正在尝试 Enable = false to menustrip .. 但是代码正在执行但无法禁用菜单
MenuStrip ms = (MenuStrip)frm_MDI.objMdi.Controls["msMainMenu"];
foreach (ToolStripMenuItem tmm in ms.Items)
{
tmm.Enabled = false;
}