Can Console App use the TrayItem Class?

Hello all,

Can a Console app use the Tray item class, or does this require the use of a desktop type app (even if headless)?

Thanks,
Tim

No, TrayItem is only available for Desktop apps on Windows and Linux.

Thanks Paul, so not even the “event driven console”, for example can use this class. Is that because it uses the menu class or something?

Tim

At least on Windows, an icon in the system tray requires an ‘owner’ window to process tray messages.

Is there a way to marry the benefits of a Service (Console App) with a desk top app that has a System Tray ?