Click here to Skip to main content
Licence CPOL
First Posted 3 Nov 2011
Views 8,622
Downloads 2,209
Bookmarked 61 times

Notification Window

By | 3 Nov 2011 | Article
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)

About the Author

Simon B.

Software Developer
Sevitec AG
Switzerland Switzerland

Member



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

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionExcelent work Pinmemberboutamen14:56 17 May '12  
Questionright to left languages PinmemberMember 867850621:27 29 Apr '12  
AnswerRe: right to left languages PinmemberSimon B.6:34 18 May '12  
QuestionVery nice PinmemberViktor_BVP6:57 6 Apr '12  
QuestionX| [modified] PinmemberDimitri7C14:02 31 Jan '12  
AnswerRe: Error 1 Assembly generation failed -- Referenced assembly 'PopupNotifier' does not have a strong name Logic PinmemberSimon B.6:27 18 May '12  
GeneralMy vote of 5 Pinmemberadrianburns2:37 23 Jan '12  
QuestionVery nice ! PinmemberWrangly10:00 16 Jan '12  
GeneralMy vote of 5 PinmemberMember 308248721:25 7 Nov '11  
QuestionIt Can't MultiplePop? Pinmemberbbls198321:28 3 Nov '11  
GeneralRe: It Can't MultiplePop? PinmemberMember 35263178:25 5 Jan '12  
QuestionIt's not quite finished... PinmemberBill SerGio, The Infomercial King19:42 3 Nov '11  
QuestionNice, but one essential point missing Pinmembermav.northwind11:37 3 Nov '11  
GeneralMy vote of 5 PinmemberWooters7:29 3 Nov '11  
QuestionGreat Work PinmemberAbinash Bishoyi6:31 3 Nov '11  

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.

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