如何关闭BalloonTip编程? [英] How to close BalloonTip programmatically?

查看:132
本文介绍了如何关闭BalloonTip编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序托盘图标。我显示的气球提示,持续20秒,当我加载的东西在后台。但是,如果背景担起年初完成,比如在10秒内,我想隐藏的气球提示。目前躲气球提示的唯一方法是单击气球提示的关闭图标。

I have a Tray icon in my application. I am showing the balloon tip for 20 seconds, when I am loading something in the background. But, if the background load gets completed early, say in 10 seconds, I would like to hide the balloon tip. Currently the only way to hide the balloon tip is to click the close icon in the balloon tip.

    Public Tray As NotifyIcon
    Tray = New NotifyIcon

    Tray.BalloonTipIcon = ToolTipIcon.Info
    Tray.BalloonTipText = "Loading"
    Tray.BalloonTipTitle = "Please Wait"
    Tray.ShowBalloonTip(20 * 1000)

是否有可能隐藏气球提示指定的时间到达编程之前?

Is it possible to hide the balloon tip programmatically before the specified time is reached?

推荐答案

试试这个:

Tray.Visible = true;

更多信息<一个href="http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/83826ebb-8d33-433f-aa74-7ba6ae58793c/"相对=nofollow>这里。

希望帮助!

这篇关于如何关闭BalloonTip编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆