开发者

ContextMenuStrip Is Available On NotifyIcon, But Not ContextMenu?

开发者 https://www.devze.com 2023-01-03 09:17 出处:网络
I\'m adding a ContextMenu to a WinForm application and I want to associate it to a NotifyIcon.The issue is the NotifyIcon\'s properties only include ContextMenuStrip and 开发者_JS百科not ContextMenu.

I'm adding a ContextMenu to a WinForm application and I want to associate it to a NotifyIcon. The issue is the NotifyIcon's properties only include ContextMenuStrip and 开发者_JS百科not ContextMenu.

How can I add a ContextMenu to my icon?

Thanks!


Looking here I see it has a ContextMenu property. What version of .Net are you using? Perhaps you are looking at the property grid? You might have to set that property in code.

0

精彩评论

暂无评论...
验证码 换一张
取 消