Knowledge Base Nr: 00300 taskbaricon.cs - http://www.swe-kaiser.de

c#: .net: Taskbaricon-Funktionalität

  
- NotifyIcon-Control zu Form hinzufügen
- Form.ShowInTaskBar = false setzen
- ContextMenuStrip zu Form hinzufügen
- ContextMenuStrip von NotifyIcon-Control setzen
- ContextMenuItem-Handler hinzufügen (z.B.: mit Show()/Hide() Fensteranzeige steuern)

private void notifyIcon_DoubleClick(object sender, EventArgs e)
{
Show();
WindowState = FormWindowState.Normal;
}