user23077506
user23077506

Reputation:

How to display NotifyIcon on the windows tray when utilising Windows Service?

I have some experience with creating Windows services and WPF/Forms. However, what I am trying to do is to utilise either [hardcodet.notifyicon.wpf (for WPF)] or [System.Windows.Forms in Windows Form] => Still I haven't decided yet on the specific UI approach; however, I am aiming to display the application icon in the tray, on the other hand, what I want to do the following:

  1. Display the Icon when the service is running (without opening the UI).
  2. Icon still be there in the tray when the UI is opened.
  3. Icon still be in the tray when the UI is closed.
  4. Icon disappears when the service fails or is stopped.

What would be the best approach to design a project like this?

Upvotes: 0

Views: 117

Answers (0)

Related Questions