Click here to Skip to main content
Click here to Skip to main content

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.

Introduction

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

Background

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";
popupNotifier1.Popup();

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

History

  • 2011-11-02: v1 released.

License

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

Share

About the Author

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

Comments and Discussions

 
QuestionSteals focus - but that can be fixed PinmemberRenniePet9-Aug-14 17:14 
GeneralExcellent Post.. Thanks a lot! Pinmembermohd_muneer6-Jul-14 23:39 
GeneralNicely done Pinmemberkevininstructor11-Apr-14 3:26 
QuestionNotificationWindow.dll on Windows 8.1 Pinmemberbilgen7-Feb-14 1:37 
AnswerRe: NotificationWindow.dll on Windows 8.1 Pinmemberdreamgarden2-Apr-14 22:42 
GeneralMy vote of 5 PinmemberDebopam Pal26-Nov-13 5:48 
QuestionBackground Image Pinmembermcheschm16-Oct-13 14:31 
GeneralMy vote of 3 Pinmemberbloo2k30-Sep-13 17:34 
GeneralRe: My vote of 3 - it can be fixed PinmemberRenniePet9-Aug-14 17:07 
QuestionHow do you miniize the windows? PinmemberJacques.Williams30-Aug-13 23:49 
QuestionWhat about resize the window for longer messages? [modified] Pinmemberseba02011-Aug-13 21:06 
BugProblem in notifier PinmemberGanesh999911-Jun-13 1:10 
SuggestionMultipe notifications Pinmemberginge600018-Apr-13 7:26 
GeneralRe: Multipe notifications Pinmemberdreamgarden2-Apr-14 22:37 
GeneralRe: Multipe notifications PinmemberMember 103386851-Jul-14 9:59 
GeneralMy vote of 5 PinmemberMember 99673255-Apr-13 4:00 
GeneralMy vote of 5 PinmemberZephyk25-Mar-13 7:33 
Questionmultiple windows display PinmemberMember 412115015-Nov-12 4:59 
GeneralMy vote of 5 PinmemberEdo Tzumer7-Nov-12 18:15 
QuestionIs this possible in web form? Pinmembermigsyandoc18-Oct-12 20:23 
QuestionWorks great! Question: PinmemberMember 938870030-Aug-12 9:07 
QuestionCan't quite get this to work. PinmemberMember 835601925-Aug-12 8:12 
GeneralThanks Pinmember55Cooper5527-May-12 4:11 
Thank you for this really cool dll. I was using the old vbpowerpack one which was pretty outdated. This is the business. Many thanks.
QuestionExcelent work Pinmemberboutamen17-May-12 14:56 
Questionright to left languages PinmemberMember 867850629-Apr-12 21:27 

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

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

| Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 3 Nov 2011
Article Copyright 2011 by Simon B.
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid