System.Windows.Forms.NotifyIcon Class

Specifies a component that creates an icon in the notification area. This class cannot be inherited.

See Also: NotifyIcon Members

Syntax

[System.ComponentModel.ToolboxItemFilter("System.Windows.Forms", System.ComponentModel.ToolboxItemFilterType.Allow)]
[System.ComponentModel.Designer("System.Windows.Forms.Design.NotifyIconDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
[System.ComponentModel.DefaultEvent("MouseDoubleClick")]
[System.ComponentModel.DefaultProperty("Text")]
public sealed class NotifyIcon : System.ComponentModel.Component

Remarks

Icons in the notification area are shortcuts to processes that are running in the background of a computer, such as a virus protection program or a volume control. These processes do not come with their own user interfaces. The System.Windows.Forms.NotifyIcon class provides a way to program in this functionality. The NotifyIcon.Icon property defines the icon that appears in the notification area. Pop-up menus for an icon are addressed with the NotifyIcon.ContextMenu property. The NotifyIcon.Text property assigns ToolTip text. In order for the icon to show up in the notification area, the NotifyIcon.Visible property must be set to true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0