Minimize an Application to the System Tray

December 27, 2008 | By | Add a Comment

Windows System Tray
To be able to use the System Tray in Visual Studio, drag and drop the NotifyIcon control. The important properties to set are Text and Icon. The Icon is displayed in the tray, and the contents of the Text property will be displayed in a Tooltip when the user hovers the mouse over the icon in the tray. Because we want to display the NotifyIcon only when the user minimizes the main window, the Visible property should be set to False, and set to True programmatically when the form is minimized.



Related Posts:

Filed in: WinForms | Tags:

Leave a Reply

Trackback URL | RSS Feed for This Entry