你好,
我在我们的应用程序中创建了气球提示。我的问题是所有气球提示都留在任务栏上,需要悬停在上面才能消失。
public static bool SetBalloonTip(string balloonTipTitle, string balloonTipText, ToolTipIcon balloonTipIcon)
{
bool result = false;
NotifyIcon notifyIcon;
try
{
notifyIcon = new NotifyIcon();
notifyIcon.Icon = SystemIcons.Information;
notifyIcon.BalloonTipTitle = balloonTipTitle;
notifyIcon.BalloonTipText = balloonTipText;
notifyIcon.BalloonTipIcon = balloonTipIcon;
notifyIcon.Visible = true;
notifyIcon.ShowBalloonTip(30000);
result = true;
}
catch (Exception)
{
throw;
}
return result;
}
我的问题是,如何让通知图标在显示后消失?