如何显示在通知区域图标与消息

问题描述:

我写的代码中是否有可用更新,然后我想表明,使用气球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....