Search code examples
c#c++windowswinapinotification-area

Shell_NotifyIcon not working even in Microsoft example


Shell_NotifyIcon does not show balloon tips for me. The icon shows up for a millisecond and disappears, and no text is shown. So, I downloaded Microsoft's NotificationIcon example from GitHub, and built it. Had to change Windows SDK in the project from 8.1 to 10.0.17763.0. The example runs, and the icon is shown in notification area, but again the actions that are supposed to show tooltips do not show them. The icon flashes into view for a millisecond, and that's it.

Then I tried C# example from the Microsoft Docs, and just added notifyIcon1.ShowBalloonTip(3000, "Tip Title", "Tip text", ToolTipIcon.Info) to a button Click handler. Same thing, icon appears briefly, and no balloon for me.

What's going on?


Solution

  • With Windows 10, balloons are not shown anymore (too intrusive). Instead, you'll get a new notification available in the notification area:

    enter image description here