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
1 answer

Minimize to tray make form unvisible

I am using NotifyIcon to make my form minimize to tray to work at background. However below code doesn't show app icon at all. Form goes totally invisible. I have to kill that from task manager. private void Button1_Click(object sender, EventArgs…
john true
  • 263
  • 1
  • 5
  • 26
3
votes
3 answers

WPF NotifyIcon Reference the TaskbarIcon (Windowless)

I’m new to WPF NotifyIcon and I’m trying to use the Windowless Sample which uses a ResourceDictionary instead of a window and the TaskbarIcon.DataContext is set to my ViewModel. I can call the example commands (ShowWindowCommand, etc.) and it works…
blPA
  • 47
  • 2
  • 9
3
votes
1 answer

Alternate showing/hiding window when notify icon is clicked

I'm implementing a Windows 7/Vista-style notification area ('system tray') pop-up application in WPF. I've written about my work so far here (determining the notify icon's position, disabling resize, etc.). There is one problem that I haven't solved…
Quppa
  • 1,841
  • 20
  • 18
3
votes
1 answer

How can I supress BalloonTipClicked event when clicking a notifyIcon?

On my form I have a notifyIcon. I have handlers for both Click & BalloonTipClicked bound to the notifyIcon. Now, if the balloon is showed and I click on the notifyIcon the BalloonTipClicked gets fired and after that the Click fires. I'm not sure if…
A1rPun
  • 16,287
  • 7
  • 57
  • 90
3
votes
0 answers

Is it possible to use ShowBalloonTip on a notifyicon without playin a sound?

I'm using notifyIcon1.ShowBalloonTip(30000); to display some status change but it also plays a defaul windows sound, is it possible to no play the sound?
Aman
  • 582
  • 2
  • 12
  • 29
3
votes
1 answer

Add Button to NotifyIcon

I want to see a little notification icon to indicate that the script I wrote is still active (both the script and displying the icon works). But I need a button within the context menu of the icon to stop the script immediately. And that's the part…
Hans Dampf
  • 67
  • 7
3
votes
1 answer

How to show the context menu programmatically when click on notification icon?

I have a sample C# windows form here. I need to show the notification icon's context menu when it is left-mouse clicked. I have marked where to write the needed codes as below: private void button1_Click(object sender, EventArgs e) { //Need…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
3
votes
1 answer

TaskbarIcon will not show balloon tip with custom icon

I have created a WPF app which is using WPF NotifyIcon. I am unable to get the ShowBalloonTip method to work with a custom Icon. I have tried like this: _icon.ShowBalloonTip("Title", "Message", new Icon("Icons/accept.ico")); Any idea how I can get…
nickela125
  • 147
  • 1
  • 2
  • 10
3
votes
1 answer

Using Invoke with a UI element that extends Application Context?

I have a taskBarIcon element extending Application Context from which my entire UI is designed. This is because the original functionality of the application was to run a background process and simply provide the icon as a confirmation that the app…
badpanda
  • 2,446
  • 5
  • 34
  • 45
3
votes
1 answer

Click Once in Windows 10 NotifyIcon not displaying

So using the following diagram: You can see that the only time when anything breaks is when I use ClickOnce in Windows 10, however the notifications work perfectly fine if I run it directly from the exe. When I run it using ClickOnce using the…
Lucas
  • 376
  • 3
  • 18
3
votes
1 answer

Why is WPF NotifyIcon Icon property setter throwing an exception?

I'm having trouble with a NotifyIcon in WPF, the second line is throwing an exception. I can't seem to find a way to use the icon file I have in the resources, can anyone help. notifyI = new NotifyIcon(); notifyI.Icon = new…
Sandeep Bansal
  • 6,280
  • 17
  • 84
  • 126
3
votes
0 answers

NotifyIcon sometimes not showing

I have a Windows Form application with a NotifyIcon. The application runs automatically on system startup, and shows its NotifyIcon and hides the form: //InitializeComponent() this.SysTrayIcon.Visible = true; //show notifyicon …
Andrew Sun
  • 4,101
  • 6
  • 36
  • 53
3
votes
1 answer

Change NotifyIcon icon at runtime

VB .Net 2.0 I am trying to change the NotifyIcon's icon, but it only work while debugging. If I copy the .exe for other folder than Debug/Release, it's doesn't work anymore. It's sounds like a "missing file". But the icons are set to "Embedded in…
lcssanches
  • 995
  • 12
  • 33
3
votes
1 answer

How to create a NotifyIcon from a BitmapImage?

I have a resource item (a png file) in my resource dictionary which I'm using in several places. Now I want to use it as application's NotifyIcon. But I don't know how to do this. Have you any idea please? // my image: var bitmap = new…
amiry jd
  • 27,021
  • 30
  • 116
  • 215
3
votes
1 answer

Multiple icons open in tray bar

I am working on a Windows application, and when I run this application, there are multiple icons appearing on the tray bar: and when I mouse-over these icons, they disappear. Does anybody have any idea why this is happening? protected override void…
G.S Bhangal
  • 3,060
  • 4
  • 23
  • 48