[英]ContextMenuStrip Is Available On NotifyIcon, But Not ContextMenu?
I'm adding a ContextMenu to a WinForm application and I want to associate it to a NotifyIcon. 我要将ContextMenu添加到WinForm应用程序中,并且希望将其关联到NotifyIcon。 The issue is the NotifyIcon's properties only include ContextMenuStrip and not ContextMenu. 问题是,NotifyIcon的属性仅包含ContextMenuStrip,而没有ContextMenu。
How can I add a ContextMenu to my icon? 如何向我的图标添加ContextMenu?
Thanks! 谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.