Questions tagged [notifyicon]

Specifies a component that creates an icon in the notification area. This class cannot be inherited

Specifies a component that creates an icon in the notification area. This class cannot be inherited

361 questions
90
votes
15 answers

NotifyIcon remains in Tray even after application closing but disappears on Mouse Hover

There are many questions on SO asking same doubt. Solution for this is to set notifyIcon.icon = null and calling Dispose for it in FormClosing event. In my application, there is no such form but has Notification icon which updates on Events. On…
Swanand
  • 4,027
  • 10
  • 41
  • 69
43
votes
4 answers

Invoke NotifyIcon's Context Menu

I want to have it such that left clicking on the NotifyIcon also causes the context menu (set with the ContextMenuStrip property) to open as well. How would I achieve this? Do I have to handle Click and figure out the positioning myself? Edit:…
BarrettJ
  • 3,431
  • 2
  • 29
  • 26
42
votes
6 answers

Show a Balloon notification

I'm trying to use the below code to show a Balloon notification. I've verified that it's being executed by using breakpoints. It's also showing no errors. What should I do to debug this since it's not throwing errors and not showing the…
Ben
  • 769
  • 2
  • 7
  • 17
29
votes
4 answers

How do I minimize a WinForms application to the notification area?

I want to minimize a C# WinForms app to system tray. I've tried this: Having the application minimize to the system tray when button is clicked?. The first time I minimize it, it's nowhere to be found on the screen - taskbar/above taskbar/tray. If i…
Buffalo
  • 3,861
  • 8
  • 44
  • 69
27
votes
3 answers

Minimizing Application to system tray using WPF ( Not using NotifyIcon )

I am finished making my application and now I want to incorporate " minimizing into the system tray feature " for it . I read up a good article minimize app to system tray . I realized that these make use of the Windows.Form class . Unfortunately…
rockstar
  • 3,512
  • 6
  • 40
  • 63
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
19
votes
2 answers

Tray Icon animation

I know how to place a icon in the Windows notification area (system tray). What is the best method to have an icon animate? Can you use an animated gif, or do you have to rely on a timer? I'm using C# and WPF, but WinForms accepted too.
Click Ok
  • 8,700
  • 18
  • 70
  • 106
19
votes
3 answers

Can I use NotifyIcon in WPF?

I want to minimizing application to system tray using WPF. Is "NotifyIcon" is the only way to achieve this result? If yes, which namespace is required for using "NotifyIcon" in WPF? If possible with "NotifyIcon",please provide some hint, how can I…
Dinesh
  • 507
  • 4
  • 14
  • 23
17
votes
5 answers

Set tray icon to always show

How I can I set a NotifyIcon to be always visible in the right tray: http://screensnapr.com/v/qKWHe2.png because it shifts it over into the inactive icon window: http://screensnapr.com/v/jjtuK0.png The issue is that the tray icon has a context menu…
Drake
  • 3,851
  • 8
  • 39
  • 48
14
votes
7 answers

ShowBalloonTip Not Working

On Windows 10, the ShowBalloonTip method of NotifyIcon NEVER shows the balloon tip. This would appear to have something to do with Windows itself. If I go to Settings > System > Notifications & actions > and find my running app (vshost32.exe in…
rmirabelle
  • 6,268
  • 7
  • 45
  • 42
13
votes
2 answers

Action<> multiple parameters syntax clarification

Sometimes I can't understand the simplest things, i'm sure it's in my face, i just fail to see it. Im trying to create a delegate for a method in this simple class: public static class BalloonTip { public static BalloonType BalType { …
Amc_rtty
  • 3,662
  • 11
  • 48
  • 73
12
votes
7 answers

What is the size of the icons in the system tray?

I want to change the notification icon of my application but don't know what is the size so as to make it properly displayed. Currently it is automatically resized and break my pixels! Please help!
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
12
votes
3 answers

Notify Icon Ballon Tip Not showing in C#?

i am using this code under my form1_load notifyIcon1.Visible = true; notifyIcon1.ShowBalloonTip(5000, "Welcome", "Hello " + User, ToolTipIcon.Info); I even checked my registery and the value was 1. Why is the baloon not showing? I do have a icon…
Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116
12
votes
7 answers

Issue with NotifyIcon not disappearing on Winforms App

I've got a .Net 3.5 C# Winforms app. It's got no GUI as such, just a NotifyIcon with a ContextMenu. I've tried to set the NotifyIcon to visible=false and dispose of it in the Application_Exit event, as follows: if (notifyIcon != null) …
bUrGe
11
votes
2 answers

Accessing resources from code for setting NotifyIcon.Icon

I am trying to get the Icon of a NotifyIcon in WPF. So I have added a .ico file to my solution in a Resources folder and set the build action to Resource. I am trying to grab this resource in code behind like so: var icon = (Icon)…
Cheetah
  • 13,785
  • 31
  • 106
  • 190
1
2 3
24 25