I'm trying to get a notifyIcon to show a BalloonTip, but it won't show up when I press the button
private void button1_Click(object sender, EventArgs e)
{
OsWatchNotify.Visible = true;
OsWatchNotify.BalloonTipText = "Example";
OsWatchNotify.BalloonTipTitle = "example title";
OsWatchNotify.ShowBalloonTip(1);
}
any and all help would be appreciated.
There are not that many ways to fumble a NotifyIcon
. Except one, if you forget to set its Icon property then it will never show up. Ought to raise an exception but that was overlooked.
If you are using Windows 10 go to Settings > System > Notifications & actions and make sure notifications are switched on for your app. Also make sure 'quiet hours' is not on.
This was the fix in Windows 10:
Open regedit.exe
Navigate to HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Set (or add) EnableBalloonTips (as REG_DWORD) and set value to 1
Reboot.
Perhaps, code it to check the registry and/or notify user..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With