C# NotifyIcon ShowBalloonTip timeout

老子叫甜甜 提交于 2020-01-04 09:02:24

问题


In my c# (2.0 framework) application I'm using notify Icon control. I want to show from this control a balloon tip. but the "showBalloonTip" event i slimite to a timeout and I want to show this balloon forever. I've tried to use a timer that will show the balloon again and again but in vista there is a fading effect for balloons and if it is not disabled every 25-30 seconds the balloon will fade in.

Any idea?

Thanks.


回答1:


The balloon is faded by default and it's part of the Windows common behavior. You can't adjust it. What you could do is create a form, place is manually next to the toolbar region and display it topmost (but non-dialog) and use the BalloonTipShown event to override the display of the actual balloon.



来源:https://stackoverflow.com/questions/2920029/c-sharp-notifyicon-showballoontip-timeout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!