G
gervaz
Hi all, I need to show a notify icon in my program, but the following
code snippet doen not work... any idea why?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestNotify
{
class Program
{
static void Main(string[] args)
{
System.Windows.Forms.NotifyIcon notify = new
System.Windows.Forms.NotifyIcon(new
System.ComponentModel.Container());
notify.BalloonTipText = "Hello";
notify.BalloonTipTitle = "System Watcher";
notify.Visible = true;
notify.ShowBalloonTip(10000);
}
}
}
Keep in mind that the NotifyIcon is the only UI, so nothing will
subclass System.Windows.Forms.
Thanks,
Mattia
code snippet doen not work... any idea why?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TestNotify
{
class Program
{
static void Main(string[] args)
{
System.Windows.Forms.NotifyIcon notify = new
System.Windows.Forms.NotifyIcon(new
System.ComponentModel.Container());
notify.BalloonTipText = "Hello";
notify.BalloonTipTitle = "System Watcher";
notify.Visible = true;
notify.ShowBalloonTip(10000);
}
}
}
Keep in mind that the NotifyIcon is the only UI, so nothing will
subclass System.Windows.Forms.
Thanks,
Mattia