Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Annoying NotifyIcon.ShowBalloonTip behaviour

Is it me, or something nasty going on here about NotifyIcon. Whatever I give to timeout parameter of NotifyIcon.ShowBalloonTip method it is shown for only certain amount of time. Which is around 9 secs on win7 and win 8.1 and around 4 secs on windows server 2008 r2. These are the operating systems I tried so far.

I tried both overloads of NotifyIcon.ShowBalloonTip but I get same results.

//this is only shown for 9 seconds
notifyIcon1.ShowBalloonTip(15000); 

and this

//this is only shown for 9 seconds too :)
notifyIcon1.ShowBalloonTip(15000, "1 sec", "shown for one sec", ToolTipIcon.Info); 

On msdn it says:

Minimum and maximum timeout values are enforced by the operating system and are typically 10 and 30 seconds, respectively, however this can vary depending on the operating system.

Okay, but don't we have any word on this? If it is a preset value, why there is this timeout parameter?

I'm hoping I'm missing something stupid. (I'm working with .net 4.5)

like image 1000
Tolga Evcimen Avatar asked Nov 09 '22 15:11

Tolga Evcimen


1 Answers

Thanks to @γηράσκω δ' αεί πολλά διδασκόμε's comment, I made sure that I wasn't missing anything. And the next thing to do was creating a NotifyBalloon project, so I did it.

Fellow sufferers can check and use it from my public gitHub repository NotifyBalloon.

like image 186
Tolga Evcimen Avatar answered Nov 15 '22 08:11

Tolga Evcimen