如何在状态栏中显示通知弹出窗口 [英] How to show Notification popup in the Status Bar

查看:83
本文介绍了如何在状态栏中显示通知弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





Iam在状态栏中显示验证消息。当显示验证消息时



弹出/通知也必须从状态栏生成而不是从SystemTray生成。我可以实现这一点。

Hi,

Iam Showing the Validation Message in the status bar.so when the validation message is shown a

Popup/Notification must be also generated from the status bar not from SystemTray.how can i achieve this.

toolStripStatusLabel1.Text = "My Alert Message";

      notifyIcon1.Text = "My Alert Message";

      notifyIcon1.BalloonTipText = "My Alert Message"";

      notifyIcon1.Visible = true;

      notifyIcon1.ShowBalloonTip(1000);





问候,



sajith



Regards,

sajith

推荐答案

public static void ShowMessage(string _class, string msg, System.Web.UI.HtmlControls.HtmlGenericControl divMessage, Literal ltlMessage)
       {
           divMessage.Style.Add("display", "block");
           divMessage.Attributes.Add("class", _class);
           ltlMessage.Text = msg;
       }


这篇关于如何在状态栏中显示通知弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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