ここを参照してください:http://bluehouse.wordpress.com/2006/01/24/how-to-create-a-notify-icon-in-c-without-a-form/
編集:リンクが停止した場合に備えて、この回答へのリンクにコードを追加しました。このコードの作者にはクレジットが与えられます。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;
class ControlContainer : IContainer
{
ComponentCollection _components;
public ControlContainer()
{
_components = new ComponentCollection(new IComponent[] { });
}
public void Add(IComponent component) { }
public void Add(IComponent component, string Name) { }
public void Remove(IComponent component) { }
public ComponentCollection Components
{
get { return _components; }
}
public void Dispose()
{
_components = null;
}
}
class MainEntryClass
{
static void Main(string[] args)
{
SomeClass sc = new SomeClass();
Application.Run();
}
}
class SomeClass
{
ControlContainer container = new ControlContainer();
private System.Windows.Forms.NotifyIcon notifyIcon1;
public SomeClass()
{
this.notifyIcon1 = new NotifyIcon(container);
}
}