Windows Forms: Create a System Tray Program

The purpose of this demonstration is to illustrate how to create a program that
displays an icon in the taskbar tray.

Featured Highlights

In addition to showing how to create a NotifyIcon and associate it with a context
menu. This application illustrates also how to access system and other information
from classes found in the framework.

The different types of information that are accessed are detailed below:

    The length of time the users machine has gone since it's last reboot in minutes.
    The current time zone of the user.
    The current date.
    The version of the framework that is installed on the user's machine.
    The current Operating System Version that the user is running the application on.

These pieces of information are shown when the user clicks menu items in the context
menu associated with the notify icon control.

Requirements

Visual Studio.NET Professional
Windows XP Professional or Windows 2000

Running the Sample

Simply Press F5.

See Also

NotifyIcon