Search code examples
c#winformssystem-traytrayicon

Custom tray icon notification balloon


I have a C# program that sits in the system tray and pops up a notification balloon now and then. I'd like to provide 2-3 buttons on the notification balloon to allow the user to take various actions when the notification appears - rather than, for example, having to click the notification balloon to display a form containing buttons for each possible action.

I'm looking for suggestions on the best way to go about implementing this.

Edit: clarification, I want to provide buttons on the notification balloon so the user can take direct action on the notification rather than having to take action through some other part of the application (a form or menu for example).


Solution

  • There's no built-in method for this. I would suggest writing your own "balloon" and activating that instead of calling .ShowBalloon()