1

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) ?

Maciek
  • 19,435
  • 18
  • 63
  • 87

2 Answers2

4

If you want it to start minimized, just do a WindowState = FormWindowState.Minimized before showing the window, and remove the code in NotifyIcon.DoubleClick that maximizes it.

sideshowbarker
  • 81,827
  • 26
  • 193
  • 197
luvieere
  • 37,065
  • 18
  • 127
  • 179
2
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
  • 24,752
  • 10
  • 56
  • 61