Notification Window In .NET Windows Forms

Posted on 2007-07-28
Last Modified: 2013-11-26
Experts, I am trying to create a window effect much like the "Just Updated..." status window of many antivirus programs. If you haven't seen that, it is a little window that pops up close to the task tray that alerts you that your program just updated. it is about 200px wide and 300 pixels tall. It comes up for about 2 seconds and fades away.

I'm very new to windows forms and not sure if that can be accomplished in .NET forms.

Any ideas?

~ C
Question by:clickclickbang
    LVL 19

    Accepted Solution

    .NET provides a NotifyIcon component for that.

    I don't have a handy example, but there is one in the MS docs:

    As far as the popup window, are you looking for one of those little ballon windows (a feature of the NotifyIcon component) or are you looking for a "real" window?
    LVL 1

    Author Comment

    Excellent, my post was in regards to a "real window" but the ballon pop-up will do fine for what I'm after.

    thanks much!
    LVL 19

    Expert Comment

    If you want a real window it's not too hard.  Instead of showing doing the balloon tip, you can design a form and just show it for a short time and then hide or close it again.  You'd do the Show/Wait/Hide in the same place where you would otherwise call the ShowBalloonTip method.  Figuring out where to place the form on the screen, assuming you want it just above the tray icon, is the tricky part.
    LVL 1

    Author Comment

    Very good. Along the sames lines of using a icon in the sys tray, you might be able to help with this question:

    (I.e. trying to make it so when minimized the form disappears from the screen rather than sits in the bottom left above the tasktray).

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    745 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

    17 Experts available now in Live!

    Get 1:1 Help Now