标签:public enabled strip 代码 .com reac sha cli 技术分享
实现效果:
知识运用:
ToolStripMenuItem菜单项的Enabled属性 //指示菜单项是否可用
public override bool Enabled { get;set; }
实现代码:
private void btn_Enable_Click(object sender, EventArgs e) { ToolStripMenuItem P_toolStripMenuItem = (ToolStripMenuItem)menuStrip1.Items[0]; foreach (ToolStripMenuItem item in P_toolStripMenuItem.DropDownItems) { item.Enabled = true; } }
标签:public enabled strip 代码 .com reac sha cli 技术分享
原文地址:https://www.cnblogs.com/feiyucha/p/10166383.html