Solved

Taskbar Notification using WPF

Posted on 2010-08-26
1
1,672 Views
Last Modified: 2013-11-12
Experts,

I have an interesting problem and that is that i am trying to provide users a notification as soon as the loading of a winform/wpf form is completed and provide a checkbox on the notification to allow user to suppress the notification for the session. But there should be a small icon in the taskbar available to reopen the window as well.Can this be done and i would really appreciate help on that.
0
Comment
Question by:dotnetpro
1 Comment
 
LVL 5

Accepted Solution

by:
Silverlay earned 500 total points
ID: 33541048
You can create this small tray icon using something like this (on your app window ctor)

For popups manual please take a look at: http://www.codeproject.com/KB/WPF/WPF_xaml_taskbar_window.aspx
System.Windows.Forms.NotifyIcon ni = new System.Windows.Forms.NotifyIcon();
        ni.Icon = new System.Drawing.Icon("App.ico");
        ni.Visible = true;
        ni.DoubleClick += 
            delegate(object sender, EventArgs args)
            {
                this.Show();
                this.WindowState = WindowState.Normal;
            };

Open in new window

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now