Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/notifyicon-component-overview-windows-forms.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

2.4 KiB

title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
title ms.date f1_keywords helpviewer_keywords ms.assetid
NotifyIcon Component Overview 03/30/2017
NotifyIcon
NotifyIcon component [Windows Forms], about NotifyIcon component
system tray icons [Windows Forms], about system tray icons
system tray icons [Windows Forms], using in Windows Forms
5b9189fa-d4ae-41a6-9b97-eb1f44bb1a69

NotifyIcon Component Overview (Windows Forms)

The Windows Forms xref:System.Windows.Forms.NotifyIcon component is typically used to display icons for processes that run in the background and do not show a user interface much of the time. An example would be a virus protection program that can be accessed by clicking an icon in the status notification area of the taskbar.

Key Properties of NotifyIcons

Each xref:System.Windows.Forms.NotifyIcon component displays a single icon in the status area. If you have three background processes and wish to display an icon for each, you must add three xref:System.Windows.Forms.NotifyIcon components to the form. The key properties of the xref:System.Windows.Forms.NotifyIcon component are xref:System.Windows.Forms.NotifyIcon.Icon%2A and xref:System.Windows.Forms.NotifyIcon.Visible%2A. The xref:System.Windows.Forms.NotifyIcon.Icon%2A property sets the icon that appears in the status area. In order for the icon to appear, the xref:System.Windows.Forms.NotifyIcon.Visible%2A property must be set to true.

NotifyIcons Options

You can associate balloon tips, shortcut menus, and ToolTips with a xref:System.Windows.Forms.NotifyIcon to assist the user.

You can display balloon tips for a xref:System.Windows.Forms.NotifyIcon by calling the xref:System.Windows.Forms.NotifyIcon.ShowBalloonTip%2A method specifying the time span you wish the balloon tip to display. You can also specify the text, icon and title of the balloon tip with the xref:System.Windows.Forms.NotifyIcon.BalloonTipText%2A, xref:System.Windows.Forms.NotifyIcon.BalloonTipIcon%2A and xref:System.Windows.Forms.NotifyIcon.BalloonTipTitle%2A, respectively. xref:System.Windows.Forms.NotifyIcon components can also have associated ToolTips and shortcut menus. For more information, see ToolTip Component Overview and ContextMenu Component Overview.

See also