I have an application that uses NotifyIcon in the tray to hide / restore the application, as well as pop-up notifications to the user about application events. My application has a notification queue, and I use the NotificationIcon.BalloonTipClosed event to determine when the balloon is reset and show the next notification (if there is one in the queue).
This method seems to work just fine for normal reasons (the user allows the balloon to close when it runs out, and the user clicks an “X” in the balloon to force it to close), but there is a third case where BalloonTipClosed does not get called:
- Pop-up notification pops up.
- While it is visible, the user right-clicks the notification icon to bring up a context menu, causing the balloon to disappear.
The BalloonTipClosed event does not fire on this instance - I believe this is a structural error (I am using 2.0), but does anyone have an idea about this? If I do not receive this event, my application always thinks that a balloon is displayed there (I have a logical value that prevents it from displaying several balloons at once) and it will never display another icon while it is running.
source
share