C# NotifyIcon ShowBalloonTip 超时

发布于 2024-09-03 00:17:44 字数 185 浏览 2 评论 0原文

在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清引 2024-09-10 00:17:44

默认情况下,气球是淡出的,这是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文