Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何隐藏子菜单项中的选定区域?请参考附图..
迟到的答案:
使用ShowImageMargin()方法在右键单击时隐藏 ContexMenu Strip。& 请选择子项作为另一个 ContexMenuStrip。
ContextMenuStrip1.ShowImageMargin = true;
这隐藏了您标记的区域。