C# NotifyIcon ShowBalloonTip 超时
在我的 C#(2.0 框架)应用程序中,我使用通知图标控件。 我想从此控件中显示气球提示。但是“showBalloonTip”事件我限制为超时,我想永远显示这个气球。我尝试使用一个计时器来一次又一次地显示气球,但在 vista 中,气球会出现淡出效果,如果不每 25-30 秒禁用一次,气球就会淡入。
有什么想法吗?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,气球是淡出的,这是 Windows 常见行为的一部分。你无法调整它。您可以做的是创建一个表单,手动将其放置在工具栏区域旁边并将其显示在最上面(但非对话框),并使用 BalloonTipShown 事件覆盖实际气球的显示。
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.