sooprise
sooprise

Reputation: 23207

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. The issue is the NotifyIcon's properties only include ContextMenuStrip and not ContextMenu.

How can I add a ContextMenu to my icon?

Thanks!

Upvotes: 0

Views: 889

Answers (1)

Chris Dunaway
Chris Dunaway

Reputation: 11216

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.

Upvotes: 2

Related Questions