Table of Contents

Class NotifyIcon

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Specifies a component that creates an icon in the notification area.

public class NotifyIcon : HandledObject<INotifyIconHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
Inheritance
NotifyIcon
Implements

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 NotifyIcon class provides a way to program in this functionality. The Icon property defines the icon that appears in the notification area. Pop-up menus for an icon are addressed with the Menu property. The Text property assigns tool tip text. In order for the icon to show up in the notification area, the Visible property must be set to true.

Constructors

NotifyIcon()

Initializes a new instance of the NotifyIcon class.

Properties

Icon

Gets or sets the current icon.

IsAvailable

Gets whether system tray is available in the desktop environment the app runs under.

IsIconInstalled

Gets whether icon was actually installed and visible.

IsOk

Gets whether this object initialized successfully.

Menu

Gets or sets the menu associated with the NotifyIcon.

Tag

Gets or sets an arbitrary object representing some type of user state.

Text

Gets or sets the tool tip text displayed when the mouse pointer rests on a notification area icon.

Visible

Gets or sets a value indicating whether the icon is visible in the notification area of the taskbar.

Methods

CreateHandler()

Creates handler.

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

OnClick(EventArgs)

Raises the Click event.

OnDoubleClick(EventArgs)

Raises the DoubleClick event.

Events

Click

Occurs when the user clicks the icon in the notification area.

DoubleClick

Occurs when the user double clicks the icon in the notification area.