Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Notification Window

0.00/5 (No votes)
3 Nov 2011 3  
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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here