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
0
votes
0 answers

Check notification balloons from other programs

I want to check notification balloons from all other running programs and keep records to look after with my C# program. How can I do that? in this case Example I want to keep log of "Hello" and "This is a balloon tip!".
adrasteia
  • 13
  • 3
0
votes
2 answers

NotifyIcon - prevent multiple database query

I have a NotifyIcon and I set balloon text with MouseMove event. The balloon text comes from a database. This results continuous database query. private void notifyIcon1_MouseMove(object sender, MouseEventArgs e) { //database…
kovak
  • 73
  • 1
  • 9
0
votes
0 answers

Restore MDI form window from system tray without clicking on notifyicon c#

I have created single instance windows application, when i minimize the window app goes to system tray. Now i want to restore it from system tray without making double click on notifyicon ( i can use Run Window , Or desktop shortcut) Below is my…
Nitin Patil
  • 110
  • 10
0
votes
1 answer

Reminder using NotifyIcon and Timer C#

I wrote some code to create a reminder. It should warn me through a notification when it's 10 am. To make this possible I created a DateTime object as DateTime.Now to get local time, and I used a timer to check every minute if it was the same time I…
Alessio Raddi
  • 540
  • 1
  • 6
  • 20
0
votes
1 answer

Why can't I make my NotifyIcon implemented in another class disappear upon exit?

Here's some code from a freshly made Windows Forms project, with nothing else changed: public partial class Form1 : Form { public Form1() { InitializeComponent(); Bitmap blah = new Bitmap(16, 16); using (Graphics…
unrelativity
  • 3,670
  • 6
  • 38
  • 63
0
votes
0 answers

NotifyIcon Freezes application for some time while adding first ToolStripMenuItem on WPF

I've written the following code to initialize NotifyIcon of my WPF application: var Notify = new System.Windows.Forms.NotifyIcon(); var sri = Application.GetResourceStream(new Uri("/Content/Images/icon.ico", UriKind.Relative)); var…
Sannan Khan
  • 39
  • 1
  • 9
0
votes
1 answer

Close app to System-Tray and open it from there

i'm trying to hide an app when the user either minimizes or closes the app. Then if he clicks on the notifyicon of the app it should show again. I tried this piece of code: private void openForm() { if (this.WindowState ==…
ZZ_James
  • 129
  • 2
  • 12
0
votes
1 answer

Command binding for button in ItemsControl in WPF NotifyIcon

I'm using hardcodet's WPF NotifyIcon in my app, which is being implemented using MVVM Light. I'm trying to create a custom TrayPopup for the icon. In this popup I have an ItemsControl, whose ItemsSource is a list of objects "NumberList" in my…
0
votes
1 answer

Dispatcher.Invoke is sometimes not called

My app needs to show balloon notifications from time to time. I do this via Dispatcher.Invoke() that performs an Action that creates a NotifyIcon, displays the balloon notification, then disposes the system tray icon. public abstract class Foo { …
Obay
  • 3,135
  • 15
  • 55
  • 78
0
votes
1 answer

Set NOTIFY ICON in taskbar with Win32 Api in c++

I have this code (From the Microsoft page here) that set an icon in the task bar, but I can't show any icon in it. //Notification nid.cbSize = sizeof(nid); nid.uFlags = NIF_ICON | NIF_TIP | NIF_GUID; // Note: This is an example GUID…
Jose
  • 129
  • 2
  • 4
  • 9
0
votes
1 answer

Event handler not fired when using Timer

I would like to have a system tray icon appear only when I need to show a balloon tip, then hide the icon when the balloon tip is closed. However, once the icon is shown, I can't get it to disappear because the event handler is not fired: public…
Obay
  • 3,135
  • 15
  • 55
  • 78
0
votes
1 answer

ResourceReferenceKeyNotFoundException on NotifyIcon

I'm using WPF NotifyIcon, and actually I'm trying to learn how to display a simple NotifyIcon in the system tray. Actually In the MainWindow I put this code: private TaskbarIcon tb; public MainWindow() { InitializeComponent(); } …
Dillinger
  • 1,823
  • 4
  • 33
  • 78
0
votes
1 answer

NotifyIcon does not display, even after visible=true

This question is different from others because I've already tried their solutions: visible=true; balloon tips also don't show; and it's not in the "extended icons" section of the system tray (or whatever that's called where hidden icons go). The…
Luc
  • 5,339
  • 2
  • 48
  • 48
0
votes
3 answers

How can I load NotifyIcon from Resources using C#

I want load icon from Resources. I am using code: Resources.myImage It is Bitmap. I need: System.Windows.Forms.NotifyIcon. How can I load image like a System.Windows.Forms.NotifyIconor use some convert? Thank you for your help.
chelocre
  • 73
  • 1
  • 2
  • 9
0
votes
2 answers

Cannot get WPF application to return to topmost app in window

I'm using NotifyIcon to implement a "minimize icon to tray" feature in my WPF app. The minimize works just fine, however if I click "open", the icon will re-appear on the taskbar but the app doesn't re-appear. I'm setting the TopMost property to…
NealR
  • 10,189
  • 61
  • 159
  • 299