Click here to Skip to main content
14,022,693 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


117 bookmarked
Posted 3 Nov 2011
Licenced CPOL

Notification Window

, 3 Nov 2011
Rate this:
Please Sign up or sign in to vote.
A notification window that appears on the lower right part of the screen.


This is a WinForms component that displays a notification window in the lower right part of the screen. Just like the Outlook new mail notification. There are many possibilities to customize the appearance of the notification window:

  • scroll and/or fade window in and out
  • configure the animation speed and the time the window is displayed
  • display a custom icon
  • set title and content text, font, size, and color
  • set all paddings around icon, title and content
  • optionally display a close button
  • optionally display a button which opens a context menu


This control is based on the CodeProject article An Office 2003-like popup notifier by Nicolas Wälti. I fixed a lot of bugs in the original control and added even more properties for customizing the appearance of the notification window.

Using the code

Using the notification window component is very simple. Just add a reference to "NotificationWindow.dll" to your WinForms project. A new component " will appear in the toolbox. Then drag this component to an existing form.

To show the notification, simply call the "Popup" method. However, normally you want to set some properties first to customize the appearance of the notification window.

popupNotifier1.TitleText = "This is the notification title";
popupNotifier1.ContentText = "This is the notification text";

Take a look at the demo project which shows the usage of most properties!


  • 2011-11-02: v1 released.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Simon B.
Software Developer Sevitec Informatik AG
Switzerland Switzerland
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionNo Scroll bar? Pin
Member 129109672-Apr-18 1:05
memberMember 129109672-Apr-18 1:05 
SuggestionUpgrade - submit Pin
Member 1198594518-Mar-18 20:13
memberMember 1198594518-Mar-18 20:13 
GeneralRe: Upgrade - submit Pin
suresh9sb20-Jul-18 5:30
membersuresh9sb20-Jul-18 5:30 
QuestionNotification Position Pin
Cool Smith10-Feb-18 10:52
memberCool Smith10-Feb-18 10:52 
QuestionPopup notification in right corner in Pin
Vivek Arzare22-May-17 0:27
memberVivek Arzare22-May-17 0:27 
Questionproblem Pin
Member 1136952717-Jan-17 4:34
memberMember 1136952717-Jan-17 4:34 
QuestionNeed multiple popup that should be closed only on close click Pin
Member 76956341-Aug-16 19:20
memberMember 76956341-Aug-16 19:20 
GeneralMy vote of 1 Pin
Member 1226073921-Jan-16 21:22
memberMember 1226073921-Jan-16 21:22 
QuestionPopup and MessageBox (modal dialog) Pin
nikda24-Nov-15 19:25
membernikda24-Nov-15 19:25 
Bugpopup is shown in secondary screen Pin
karadogan3-Nov-15 7:03
memberkaradogan3-Nov-15 7:03 
QuestionChange Position of Notification Window Pin
Charles OBrien15-Oct-15 6:43
memberCharles OBrien15-Oct-15 6:43 
QuestionSwitching through more messages at one notification Pin
Member 1145156919-Aug-15 20:34
memberMember 1145156919-Aug-15 20:34 
QuestionThread safe Pin
Zbynek Sulc18-Aug-15 23:17
memberZbynek Sulc18-Aug-15 23:17 
QuestionSuggested Height per line? Pin
Andy Pandy Cartwright1-Apr-15 23:47
memberAndy Pandy Cartwright1-Apr-15 23:47 
QuestionError Pin
Ravi jo24-Feb-15 3:45
memberRavi jo24-Feb-15 3:45 
AnswerRe: Error Pin
Andy Pandy Cartwright3-Mar-15 22:32
memberAndy Pandy Cartwright3-Mar-15 22:32 
QuestionI'm getting this error when loading Project, Please Help Pin
zeqe5-Feb-15 9:42
memberzeqe5-Feb-15 9:42 
GeneralMy vote of 3 Pin
BillWoodruff11-Dec-14 3:39
mveBillWoodruff11-Dec-14 3:39 
NewsImprovements PopupNotifierCollection Pin
Member 84062631-Oct-14 22:12
memberMember 84062631-Oct-14 22:12 
GeneralRe: Improvements PopupNotifierCollection Pin
BillWoodruff11-Dec-14 3:38
mveBillWoodruff11-Dec-14 3:38 
QuestionI try to add PopupNotifierCollection into the project but it's not working it show only item 2 Pin
dev_prog29-Sep-14 14:58
memberdev_prog29-Sep-14 14:58 
I added this class into my project

Imports System.ComponentModel
Imports NotificationWindow

Namespace NotificationWindow
    Public Class PopupNotifierCollection
        Inherits System.Collections.CollectionBase
        Public Sub New()
        End Sub

        Default Public Property Item(index As Integer) As PopupNotifier
                Return DirectCast(List(index), PopupNotifier)
            End Get
            Set(value As PopupNotifier)
                List(index) = value
            End Set
        End Property

        Public Function Add(item As PopupNotifier) As Integer
            Return Me.List.Add(item)
        End Function

        Public Function Contains(item As PopupNotifier) As Boolean
            Return Me.List.Contains(item)
        End Function

        Public Sub Remove(item As PopupNotifier)
        End Sub

        Public Function IndexOf(item As PopupNotifier) As Integer
            Return Me.List.IndexOf(item)
        End Function

        Public Sub Popup(Optional index As Integer = 0)
            For Each item As PopupNotifier In List

        End Sub
    End Class
End Namespace

And I create a Test Projet
And insert this code

Imports PopupNotifier
Imports NotificationWindow.PopupNotifierCollection
Imports NotificationWindow

Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

        Dim nc As New PopupNotifierCollection()

        Dim pn As New PopupNotifier()

        pn.TitleText = "Title 1"
        pn.ContentText = "Content 1"
        ' pn.AnimationDuration = 1000
        'pn.Delay = 3000

        pn = New PopupNotifier()
        pn.TitleText = "Titre 2"
        pn.ContentText = "Content 2"


    End Sub
End Class

But it show me only the popup for the second popup like "Titre 2"
I would like to use this kind of popup into my apps .. but it's not working
Is there a way to help me...

AnswerRe: I try to add PopupNotifierCollection into the project but it's not working it show only item 2 Pin
dev_prog1-Oct-14 9:43
memberdev_prog1-Oct-14 9:43 
QuestionSteals focus - but that can be fixed Pin
RenniePet9-Aug-14 17:14
memberRenniePet9-Aug-14 17:14 
GeneralExcellent Post.. Thanks a lot! Pin
mohd_muneer6-Jul-14 23:39
membermohd_muneer6-Jul-14 23:39 
GeneralNicely done Pin
karenpayne11-Apr-14 3:26
memberkarenpayne11-Apr-14 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06 | 2.8.190417.4 | Last Updated 3 Nov 2011
Article Copyright 2011 by Simon B.
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid