Solved

Taskbar Notification using WPF

Posted on 2010-08-26
1
1,708 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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 shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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