361 questions
3 votes
1 answer
86 views
Winforms ToolStripItem has a gray background behind its image unless I set its BackColor to anything
I am trying to add items to my NotifyIcon context menu like this: notifyIcon = new() { Icon = Resources.NotifyIcon, ContextMenuStrip = new() { Items = { { "Exit", ...
0 votes
2 answers
121 views
How to send commands to the WPF application to show the Balloontips and System Tray Icons using IPC Named Pipes in c#?
I am trying to create a service with WPF where the service will communicate with WPF telling the WPF to display icon tray and ballontip. I have designed the following codes: App.xaml.cs namespace ...
0 votes
0 answers
129 views
How to display NotifyIcon on the windows tray when utilising Windows Service?
I have some experience with creating Windows services and WPF/Forms. However, what I am trying to do is to utilise either [hardcodet.notifyicon.wpf (for WPF)] or [System.Windows.Forms in Windows Form] ...
0 votes
0 answers
88 views
NotifyIcon fails to appear sometimes when my app starts at user login
My app: .NET 7.0 Windows GUI app uses WPF for some parts of the GUI uses WinForms for other parts of the GUI uses the NotifyIcon class that is a part of WinForms (System.Windows.Forms.NotifyIcon) to ...
-1 votes
0 answers
34 views
C# I have a code that reads from a USB code scanner (COM4) that only works with a form i need it to run in background with just a NotifyIcon
i found the code/library and all i needed on BasselItech https://www.youtube.com/watch?v=zzs2xnyCczo i tried modifying the code with using .Hide() and visible set to false but there is always the Form ...
0 votes
0 answers
172 views
NotifyIcon & BalloonTip
I am trying to use NotifyIcon to show some information to the user in VB Net. It is working well, but when the Balloon Tip closes, I set the NotifyIcon visibility to false, the Notify Icon disappears ...
0 votes
1 answer
118 views
WinForms: Taskbar icon via NotifyIcon component doesn't show up
I found this link from Microsoft on how to implement a Windows taskbar icon for a form which is different from the form's icon. I have one icon that fits to window and another one that fits the ...
2 votes
1 answer
151 views
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 ...
0 votes
0 answers
236 views
How to add a ''Description" field to Hardcodet NotifyIcon in WPF?
I am using HardCodet notifyicon (http://www.hardcodet.net/wpf-notifyicon) as tray icon, in a wpf application. How can I add the field "Description", which shows the application name when ...
0 votes
2 answers
680 views
WinUI3 H.NotifyIcon, Unable to resolve symbol TaskbarIcon
I am working on a winui3 project, and for notify icon, only good option I found is HavenDV/H.NotifyIcon For winui, it recommends H.NotifyIcon.WinUI, but it is having version issues and showing So, I ...
1 vote
1 answer
509 views
[Windows 10][Powershell] Attach a System.Windows.Forms.NotifyIcon object to a user session in a PS script launched by the system
I have a Powershell script which takes care of launching a backup software and which is started by a scheduled task under the system user. I can't use the user session, because I need to have full ...
1 vote
1 answer
1k views
.NET6 NotifyIcon ContextMenu wont show
So I have built an app in .NET 6, and I'm able to get it to show the NotifyIcon in the Tray Area but the context menu (right-click) on the NotifyIcon just will not show up. I built this code following ...
0 votes
1 answer
172 views
How to remove checked margin in tray icon context menu
I've created this little script running in tray. I've noticed that contex menu text is not placed completely to the left. After a little investigation I found out that it is because there is a space ...
1 vote
1 answer
1k views
How to open file on click envent notifyIcon in powershell?
I'm facing an issue on my powershell script. I use a notifyIcon to display some error message for a monitoring script. This is work perfectly. But i want to open a log file when I click on the ...
0 votes
1 answer
186 views
notifyIcon in Microsoft.NET.Sdk.Web
i have WASM app to request api to localhost for manage file and folder ... beside this i have another web application that handle WASM request .... now I want add notifyIcon to localhost web ...