How can I display a system tray icon for C# window service.?

前端 未结 2 1213
忘掉有多难
忘掉有多难 2020-11-28 09:22

How can I display a system tray icon for C# window service.?

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 09:55

    You can't, not directly, because the windows service will necessarily start when the machine does, not when a user logs in. The service will also be running in a different context, likely as a different user.

    What you can do is to write a separate system tray based "controller" that interacts with the service.

提交回复
热议问题