I got a Windows Forms project in C# with a NotifyIcon. I'm using the following code to display a balloon notification:
notifyIcon.ShowBalloonTip(1000, "title", "text", ToolTipIcon.Info);
This was working fine until Windows 8.1. Now I've installed the Windows 10 Preview and the balloon notification doesn't show up anymore.
I guess that all notifications are moved to the Windows 8 style toast notifications and the balloon notifications are completely removed (because I haven't seen a single balloon notification yet and many more toast notifications), however I haven't found an official source for this yet.
The problem is that my application is simply a single .exe file and so it doesn't have an installer or shortcut. According to this page an installer that creates a shortcut is needed for toast notifications to work.
How can I show notifications (I don't care if it's a balloon or toast notification) in Windows 10 without any shortcuts or installers?
<TargetPlatformVersion>8.0</TargetPlatformVersion>
in the csproj and add a reference toWindows
. Then you can use the WinRT api, such asToastNotificationManager.CreateToastNotifier
.