Is OwnerDraw possible with NotifyIcon

J

jm

There are properties for OwnerDraw on ContextMenu items. I know it
can be done with regular menus. I cannot find anyone doing it with
the systray icon contextmenu (notifyicon.) Is it possible to change
fonts, colors, etc. of a context menu item if it is a system tray
contextmenu?

Thank you.
 
N

Nicholas Paldino [.NET/C# MVP]

jm,

The OwnerDraw property is on the MenuItem class, not the ContextMenu
class. Because of this, you should be able to draw any menu item that you
wish on the context menu that you attach to the notify icon.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top