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
4
votes
2 answers

Animate tray icon while processing

How can I animate the tray icon while the main application is processing? I already tried the suggestion here, but the icon does not animate during process. I also tried putting the animation in a separate thread but still no luck.
sjlewis
  • 780
  • 2
  • 13
  • 25
4
votes
0 answers

Is the WinForms NotifyIcon class usable from non-UI-threads?

Normally, UI controls must be used on the UI thread only. If you want to use a UI object from any other thread you usually have to invoke Control.Invoke. NotifyIcon does not have such a method. What's the right way to do something with a NotifyIcon…
usr
  • 168,620
  • 35
  • 240
  • 369
4
votes
1 answer

Click, DoubleClick vs MouseClick and MouseDoubleClick events

I just found out that there are 4 similarly names events for NotifyIcon named Click, DoubleClick, MouseClick and MouseDoubleClick. The description text for them says Occurs when the component is (double-)clicked [with mouse]. But what else can…
user1306322
  • 8,561
  • 18
  • 61
  • 122
4
votes
1 answer

How would one attach a ContextMenuStrip to a NotifyIcon

I'm trying to make a NotifyIcon display a context menu, even if it's clicked with the left mouse button. I can get it to display in the correct location with this in the icon's MouseDown event: sysTrayIcon.ContextMenuStrip = TrayContextMenu If…
Ants1060
  • 174
  • 8
4
votes
3 answers

minimizing to notification area and double click is not opening it back up

I am trying to get my application to minimize to the notification area and that part is working. The problem is, when I double click it, it is not showing the window again. This is what I'm doing, I hope it's something simple I'm doing wrong: public…
ErocM
  • 4,505
  • 24
  • 94
  • 161
4
votes
2 answers

App-Icon Create an Overlayinformation (Number)?

How can I clone this behaviour (iOS) on an Android-App? Technically its definitly possible as I have an app by my own on my Androidphone - its an Email-App with a very similiar indicator on the Icon. (shows the number of unread Emails)
eMi
  • 5,540
  • 10
  • 60
  • 109
4
votes
3 answers

Is there a way to overlay text onto NotifyIcon?

I'm currently writing an application that has a NotifyIcon and I'm trying to figure out a way to overlay text on to it. So for example, if the icon indicates the number of files open, it has the icon plus the number on top of it. Is there a way to…
Emmanuel F
  • 1,125
  • 1
  • 15
  • 34
4
votes
3 answers

NotifyIcon Events not firing

I'm new here and have a really mysterious problem to start off. I'm a software developer in the UK and have over 15 years of experience but have only been developing in .Net for 18 months. My NotifyIcon mouse events are not firing! I am using C# to…
user188999
  • 41
  • 1
  • 2
4
votes
2 answers

Add a function to contextMenu item at notifyIcon

I use an contextMenu1 and an notifyIcon1 for the app. When the app is in Tray Icon and I will press Right Click, a menu will appear. The code is this (I add only 2 items for…
AnDr3yy
  • 239
  • 2
  • 5
  • 16
3
votes
2 answers

How do I open my closed form through the notifyicon in the taskbar?

Currently I am developing a windows form application in c# that has several forms. I am running a background form that operates the notifyicon property that allows the icon to appear in the taskbar. When I launch the program, it will launch a…
Thomas
  • 1,126
  • 6
  • 21
  • 39
3
votes
1 answer

Getting Icon from ResourceStream

I have a Icon.ico and in the Properties the Build Action is "Resource"... I want to load that Icon in the Application.. I did something like this: Icon theIcon = new…
eMi
  • 5,540
  • 10
  • 60
  • 109
3
votes
1 answer

Adding MenuItems to Contextmenu for a TrayIcon in a Console app

I made a little console app which locks the Mouse to the first screen. Now I want to create a TrayIcon with a ContextMenu to close the application. In debug-mode, I can see that the ContextMenu has two Items, just like it should, but it doesn't…
Pfanna
  • 87
  • 1
  • 9
3
votes
3 answers

Multiple notification icons appear when using multithreading

Context: I'm working with a relatively simple winforms application, written in VB.NET on the .NET 3.5 framework in Visual Studio 2010. Issue: The FormLoad event creates two threads when the program is opened. One handles automatic update checking…
Shane Gowland
  • 832
  • 1
  • 9
  • 10
3
votes
1 answer

Set image in NotifyIcon control from code behind or in XAML

i am using the NotifyIcon from WindowsForms because in WPF we don't have such control, but the one from WinForms works fine, my problem is only setting an image as icon in the NotifyIcon when the image is in the Project. I have the image in a folder…
Miguel
  • 907
  • 4
  • 26
  • 50
3
votes
2 answers

How to create notifyIcon without Form?

I added notifyIcon to the container and set Visible = true option, but no icon appeared. private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.notifyIcon1 = new…
BILL
  • 4,711
  • 10
  • 57
  • 96