如何显示在通知区域图标与消息 [英] How to show a message with icon in the notification area

查看:696
本文介绍了如何显示在通知区域图标与消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写的代码中是否有可用更新,然后我想表明,使用气球C#一个弹出消息。这类似于Java的更新可用。

I am writing code in which if updates are available then I want to show a pop up message with balloon using C#. This is similar to "Java Updates available".

随着的NotifyIcon 类的帮助和 BalloonTipIcon 属性,我可以显示在通知区域的图标,但不是这种类型的消息。任何建议会有所帮助。

With the help of the NotifyIcon class and the BalloonTipIcon property, I can show the icon in the notification area but not this type of message. Any suggestions will be helpful.

推荐答案

与下面的代码期望得到正确的输出。

Got the correct output as desired with the below code.

notifyIcon1.Visible = true;
notifyIcon1.Icon = SystemIcons.Exclamation;
notifyIcon1.BalloonTipTitle = "Balloon Tip Title";
notifyIcon1.BalloonTipText = "Balloon Tip Text.";
notifyIcon1.BalloonTipIcon = ToolTipIcon.Error;
notifyIcon1.ShowBalloonTip(1000);



感谢@Bhushan您的建议....

Thanks @Bhushan for your suggestion....

这篇关于如何显示在通知区域图标与消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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