Questions tagged [system-tray]

For questions about the system notification area (which is often called the system tray), on topics such as examining or adjusting the tray icons in the notification area, and issuing or capturing notification messages handled by the notification area. Consider using the tag notification-area instead, as system tray is a misnomer. For questions about creating or modifying a single tray icon use the trayicon tag instead.

The term system tray is a misnomer for the correct term system notification area. The system tray was originally a pre-release feature of Microsoft Windows 95 which was dropped in favour of the taskbar for the final release. Consider using the term instead.

The system notification area is part of a graphical desktop environment which acts as an anchor point for notification messages issued by the operating system and by running applications, and also for application status icons called tray icons (see ).

In desktop environments that support a notification area, the area is easily accessible and always visible (though the user may have the option to customise its visibility). For example, in Windows XP and in KDE 4, the system notification area is nestled alongside the clock on the main taskbar. This allows important notifications to be noticed immediately by the user, and makes it convenient for the user to access the tray icon for a running application even if the application window is minimized or hidden.

650 questions
263
votes
13 answers

How can I make a .NET Windows Forms application that only runs in the System Tray?

What do I need to do to make a Windows Forms application to be able to run in the System Tray? Not an application that can be minimized to the tray, but an application that will be only exist in the tray, with nothing more than an icon a tool tip,…
xyz
  • 27,223
  • 29
  • 105
  • 125
83
votes
3 answers

C# - Detect time of last user interaction with the OS

I'm writing a small tray application that needs to detect the last time a user interacted with their machine to determine if they're idle. Is there any way to retrieve the time a user last moved their mouse, hit a key or interacted in any way with…
djdd87
  • 67,346
  • 27
  • 156
  • 195
63
votes
3 answers

How do I put a Java app in the system tray?

I have a little control-panel, just a little application that I made. I would like to minimize/put the control-panel up/down with the systemicons, together with battery life, date, networks etc. Anyone that can give me a clue, link to a tutorial or…
user89862
48
votes
7 answers

How to create a system tray popup message with python? (Windows)

I'd like to know how to create a system tray popup message with python. I have seen those in lots of softaware, but yet difficult to find resources to do it easily with any language. Anyone knows some library for doing this in Python?
Roman Rdgz
  • 12,836
  • 41
  • 131
  • 207
42
votes
3 answers

Easiest way to have a program minimize itself to the system tray using .NET 4

I'm making a new WPF application and I need to be able to minimize the application and have nice and snug in the system tray, right beside the clock (or in that general area). This has to work on Windows XP, Vista and 7. I don't have to support…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
40
votes
1 answer

What's the simplest way to put a python script into the system tray (Windows)

What's the simplest way to put a python script into the system tray? My target platform is Windows. I don't want to see the 'cmd.exe' window.
Alterlife
  • 6,557
  • 7
  • 36
  • 49
30
votes
2 answers

Developing a simple Windows system tray desktop app to consume a .NET web service

I'm required to develop a simple Windows system tray desktop app to consume a .NET web service but I'm proficient in PHP, and I have little background in desktop applications. What platform would you advise me to use, preferably with a very low…
Cogicero
  • 1,514
  • 2
  • 17
  • 36
29
votes
8 answers

PyQt: Show menu in a system tray application

First of all, I'm an experienced C programmer but new to python. I want to create a simple application in python using pyqt. Let's imagine this application it is as simple as when it is run it has to put an icon in the system tray and it has offer…
Nextorlg
  • 794
  • 1
  • 8
  • 16
28
votes
4 answers

How to write an application for the system tray in Linux

How do I write my application so it'll live in the system tray on Linux? In fact, just like CheckGmail. As with CheckGmail, I'd also like some sort of popup box to appear when I hover the tray icon. Is there an API, class or something for doing…
user50685
26
votes
3 answers

GTK+ 3 StatusIcon replacement

I want my GTK application to have a status icon in the system tray, I have got this working quite nicely using a StatusIcon, however this has been deprecated: gtk_status_icon_new has been deprecated since version 3.14 and should not be used in…
Tomha
  • 847
  • 2
  • 8
  • 16
23
votes
7 answers

PyQt4 Minimize to Tray

Is there a way to minimize to tray in PyQt4? I've already worked with the QSystemTrayIcon class, but now I would like to minimize or "hide" my app window, and show only the tray icon. Has anybody done this? Any direction would be appreciated. Using…
Gavin Vickery
  • 303
  • 1
  • 3
  • 9
21
votes
7 answers

C# Minimize to system tray on close

Hi In my c# application I am trying to minimize application to systems tray, when the form is closed. Here is the code I have tried. public void MinimizeToTray() { try { notifyIcon1.BalloonTipTitle = "Sample…
Rakesh
  • 2,730
  • 10
  • 39
  • 65
20
votes
1 answer

Writing text to the system tray instead of an icon

I am trying to display 2-3 updatable characters in the system tray rather than display an .ico file - similar to what CoreTemp does when they display the temperature in the system try: I am using a NotifyIcon in my WinForms application along with…
MSOACC
  • 3,074
  • 2
  • 29
  • 50
20
votes
3 answers

How to make a Windows Forms .NET application display as tray icon?

What needs to be done to have your .NET application show up in Window's system tray as icon? And how do you handle mousebutton clicks on said icon?
steffenj
  • 7,967
  • 10
  • 35
  • 41
19
votes
6 answers

.Net Console Application in System tray

Is there a way I can put a console application in the system tray when minimizing ?
Melursus
  • 10,328
  • 19
  • 69
  • 103
1
2 3
43 44