Thursday 19 January 2012

Notify icon in web

It's a c# calss.cs file
using System;
using System.Web;
using System.Windows.Forms;
using System.Drawing;

namespace NF
{
public class NotifyClass
{
ToolStripMenuItem[] tsmi;
public NotifyClass()
{

}
public void FunctionNotifyIcon(string message)
{


NotifyIcon ni = new NotifyIcon();
ni.Visible = true;
string path = HttpContext.Current.Server.MapPath("Image/Button-Add.ico");
ni.Icon = new Icon(path, 32, 32);
ni.ShowBalloonTip(3000, "MSG", message, ToolTipIcon.Info);
System.Threading.Thread.Sleep(2000);
ni.Dispose();
}
}
}

No comments:

Post a Comment