【发布时间】:2011-01-27 15:11:40
【问题描述】:
使用 .NET 和 Windows 窗体:
将完整的ContextMenu 添加到MenuItem 的最佳方法是什么?
我的意思是:
private void AddSubMenu(MenuItem item, ContextMenu menu)
{
// I want to add the full menu to the menu item as a submenu
// I could iterate the items of the menu and add them to the item
// but I guess that there is a smarter way to do this
}
提前致谢。
【问题讨论】:
标签: c# .net winforms user-interface