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

Notification Window

By , 3 Nov 2011
 

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)

About the Author

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

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
SuggestionMultipe notificationsmemberginge600018 Apr '13 - 7:26 
GeneralMy vote of 5memberMember 99673255 Apr '13 - 4:00 
GeneralMy vote of 5memberZephyk25 Mar '13 - 7:33 
Questionmultiple windows displaymemberMember 412115015 Nov '12 - 4:59 
GeneralMy vote of 5memberEdo Tzumer7 Nov '12 - 18:15 
QuestionIs this possible in web form?membermigsyandoc18 Oct '12 - 20:23 
QuestionWorks great! Question:memberMember 938870030 Aug '12 - 9:07 
QuestionCan't quite get this to work.memberMember 835601925 Aug '12 - 8:12 
GeneralThanksmember55Cooper5527 May '12 - 4:11 
QuestionExcelent workmemberboutamen17 May '12 - 14:56 
Questionright to left languagesmemberMember 867850629 Apr '12 - 21:27 
AnswerRe: right to left languagesmemberSimon B.18 May '12 - 6:34 
All content of the notification window is user drawn, so you have to change the code to make it work with RTL languages.
The window content is drawn in the PopupNotifierForm_Paint method of the PopupNotifierForm.cs class.
 
regards,
Simon
QuestionVery nicememberViktor_BVP6 Apr '12 - 6:57 
QuestionX| [modified]memberDimitri7C31 Jan '12 - 14:02 
AnswerRe: Error 1 Assembly generation failed -- Referenced assembly 'PopupNotifier' does not have a strong name LogicmemberSimon B.18 May '12 - 6:27 
GeneralMy vote of 5memberadrianburns23 Jan '12 - 2:37 
QuestionVery nice !memberWrangly16 Jan '12 - 10:00 
GeneralMy vote of 5memberMember 30824877 Nov '11 - 21:25 
QuestionIt Can't MultiplePop?memberbbls19833 Nov '11 - 21:28 
GeneralRe: It Can't MultiplePop?memberMember 35263175 Jan '12 - 8:25 
QuestionIt's not quite finished...memberBill SerGio, The Infomercial King3 Nov '11 - 19:42 
QuestionNice, but one essential point missingmembermav.northwind3 Nov '11 - 11:37 
AnswerRe: Nice, but one essential point missingmembernickeex29 Oct '12 - 1:21 
GeneralRe: Nice, but one essential point missingmembermav.northwind15 Nov '12 - 18:52 
GeneralMy vote of 5memberWooters3 Nov '11 - 7:29 
QuestionGreat WorkmemberAbinash Bishoyi3 Nov '11 - 6:31 
AnswerRe: Great Workmembersenbadamodaran25 Jan '13 - 0:26 

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

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