As question says, How do I create such an app ? How do I make it windowless and make it reside in the system tray (bottom right) ?
+2
A:
static class Program
{
[STAThread]
static void Main()
{
NotifyIcon icon = new NotifyIcon();
icon.Icon = System.Drawing.SystemIcons.Application;
icon.Click += delegate { MessageBox.Show("Bye!"); icon.Visible = false; Application.Exit(); };
icon.Visible = true;
Application.Run();
}
}
lubos hasko
2009-11-02 09:04:43