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

Show window after double click in notify icon (after minimize to tray)

I want to use in my wpf aplication notify icon (with .dll library in project http://www.codeproject.com/Articles/36468/WPF-NotifyIcon). But I don't know, how to show my window (after minimize to tray) by double click in tray icon. I declared new…
cadi2108
  • 1,280
  • 6
  • 19
  • 43
3
votes
1 answer

WPF NotifyIcon - ContextMenu Position

Im using the WPF NotifyIcon from CodeProject. It works fine but what I noticed is that when compiling with .NET 4.0 the ContextMenu is always positioned above the taskbar, it's fine with .NET 3.5: .NET 3.5 .NET 4.0 I played around with the…
CTrox
  • 75
  • 1
  • 9
2
votes
2 answers

NotifyIcon not showing

I am writing a simple application that I would like to control with a notifyIcon rather than a form, I have follwed examples I found through Google, but my notifyIcon will not show up. What am I doing wrong? static class MainEntryClass { …
Tester101
  • 8,042
  • 13
  • 55
  • 78
2
votes
3 answers

have multiple tooltips/popups show neatly stacked in the windows systray area, similar to messenger/anti-virus notifications

I am working on a program that monitors several things such as incomming messages, faxes, calendar items and alerts etc. This program is normaly in the systray. What i want to accomplish is to have multiple tooltips or forms pop up, one for every…
2
votes
1 answer

The ContextMenu of a NotifyIcon is not updating instantly

I'm creating a tray icon application with a context menu with 3 items in it. The tray icon is to control a service running, so the user can quickly start or stop it. Depending on the service status, I want to disable the Start Button if the service…
Jonathan
  • 685
  • 1
  • 10
  • 30
2
votes
2 answers

PowerShell, Return from "Wait-Event" when "Register-ObjectEvent -Action" triggers?

I've been scratching my head on this one for several hours ... The code below triggers an action whether a notification ballon is clicked on or closed. Also I'm new to PowerShell. Consider this code : ####### Launch as :…
2
votes
1 answer

Shell_NotifyIcon in WinUI 3

I'm trying to build an WinUI 3 Application with an Notify Icon (Systray Icon). Therefore I'm using the Win32-Api: https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shell_notifyicona So far I got the icon to work, but know I'm…
Nicolai
  • 21
  • 3
2
votes
0 answers

Delete Notifyicon ContextMenuStrip item from another exe file in c#

I have 2 project in my solution on Visual Studio. First project (Winforms/Application) has got a notify icon with content menu strip like this: private void TrayMenuContext() { notifyIcon1.ContextMenuStrip = new ContextMenuStrip(); …
Habip Oğuz
  • 921
  • 5
  • 17
2
votes
2 answers

NotifyIcon showing message from program

Just wondering if there is a way to display a message from the notifyicon when a certain event in the program is reached. Almost like a balloon popup. I cant seem to find anything online... This would be used to alert the user to a certain event in…
Tim
  • 1,334
  • 2
  • 15
  • 29
2
votes
3 answers

How can I use a modern Windows 10 context menu with a Win32 NotifyIcon?

My goal is to use the modern Windows 10 themed context menu with my C# application's tray icon. Eartrumpet's tray icon context menu uses it so I know it is possible, but I have had a lot of trouble deciphering how they did it. Simply changing the…
ayylmao
  • 110
  • 8
2
votes
3 answers

How do I position a notification (tray) icon context menu on Windows XP?

I'm using C++ and Win32. I want my context menu and settings dialog to show up near the tray icon. I think I need the icon's coordinates to do that. Shell_NotifyIconGetRect wasn't available until Windows 7. WM_CONTEXTMENU is available starting in…
Ian Olsen
  • 153
  • 7
2
votes
0 answers

Doubleclick on notifyicon works only the second time

I'm developing a Windows form application and I would like that when it is resized, a notifyIcon will appear in the tray. Then when double-clicking on the notifiyIcon the form is showed. I've linked the events to the handlers: this.Resize +=…
Mally
  • 21
  • 3
2
votes
2 answers

vb.net how do I make an application that only has a notifyicon and no windows form?

I want to make an application that only has a notifyicon and doesn't have any visible window form when it starts up. I see some example sort of like what I want to do for c#, but I don't see how to do this in vb.net project.
avword
  • 209
  • 1
  • 5
  • 12
2
votes
1 answer

WPF app, problem with NotifyIcon (Forms)

I have problem with tray icon in WPF. Now i using NotifyIcon from windows forms, but this control not accepting ContextMenu from WPF. I must use ContextMenu from XAML because i will be not doing other globalization code for only this control from…
Svisstack
  • 16,203
  • 6
  • 66
  • 100
2
votes
1 answer

Extra NotifyIcon shown in system tray

I'm having an issue with an app where my NotifyIcon displays an extra icon. The steps to reproduce it are easy, but the problem is that the extra icon shows up after any of the actual codebehind we've added fires. Put simply, clicking a button…
Kettch19
  • 394
  • 8
  • 25