This documentation is archived and is not being maintained.

Windows Forms: System Tray Sample

Visual Studio .NET 2003

The System Tray sample demonstrates how to use the status area of the Windows taskbar in a Visual Basic .NET application. When run, the application adds a new icon to your system tray. Right-clicking the icon will display a shortcut menu with options to display a settings form, toggle the image in the tray, or quit the application.

This sample features Windows Forms, the status area of the taskbar, user controls, and context menus.

Note   To install and run this sample, you must be a member of your computer's Debugger Users group. If installing this application by means of a remote session, you must be a member of the Administrators group.

To run this sample

  1. Copy all files to your local hard drive by means of the Copy All Files link.
  2. Open the .sln file.
  3. Press F5.

See Also

Visual Basic Sample Applications | Visual Basic Walkthroughs

Show: