Click here to Skip to main content
12,693,412 members (29,218 online)
Click here to Skip to main content
Add your own
alternative version


179 bookmarked

An Office 2003-like popup notifier

, 23 Mar 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
A nice little control to help the user notice you're trying to tell him something...


This is a simple project, a control that mimics the Microsoft® Outlook® 2003 mail alert.


This control has several features. Among them, you'll find:

Progressive appearance - transparency

MSN Messenger like pop-ups (any size, color, etc.)

Another sample

This control is 100% drawn in the code, there is absolutely no other dependencies than System.Drawing and System.Windows.Forms.

You can include a ContextMenuStrip when clicking on the "down arrow" button.

Using the code

The controls is made of two basic classes:

  • A form (the part that will actually show up).
  • A class that contains all the properties that will be includable on forms.

The class contains two timers, one used for the appearing/disappearing animation, the other (configurable) is used to define how much time the popup is shown before it disappears.

This is how the form is actually shown:

fPopup.Size = Size
fPopup.Opacity = 0
fPopup.Location = _
  New Point(Screen.PrimaryScreen.WorkingArea.Right_
   - fPopup.Size.Width - 1, _

The form is does the drawing in the Paint event.

I'm using these functions to obtain a color that is similar but lighter/darker. There might exist another method.

Private Function GetDarkerColor(ByVal Color As Color) As Color
    Dim clNew As Color
    clNew = Drawing.Color.FromArgb(255, DedValueMin0(CInt(Color.R), _
            Parent.GradientPower), DedValueMin0(CInt(Color.G), _
            Parent.GradientPower), DedValueMin0(CInt(Color.B), _
    Return clNew
End Function

And to avoid flickering...

Me.SetStyle(ControlStyles.OptimizedDoubleBuffer, True)
Me.SetStyle(ControlStyles.ResizeRedraw, True)
Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)

Points of Interest

None really, it's nice, it's fun, it's colorful... that's it :)


  • March 2006 - V 1.0.


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


About the Author

Nicolas Wälti
Software Developer (Senior)
Switzerland Switzerland
No Biography provided

You may also be interested in...

Comments and Discussions

AnswerNew / Update to this Notification Popup Pin
MacSpudster20-Feb-14 13:38
memberMacSpudster20-Feb-14 13:38 
GeneralMy vote of 5 Pin
dipan chikani15-Sep-12 3:23
memberdipan chikani15-Sep-12 3:23 
NewsNew Version of this Control with many Bugs fixed (Link inside) Pin
Simon B.3-Nov-11 5:54
memberSimon B.3-Nov-11 5:54 
Questioncontrols property Pin
sergio5822-Jul-11 5:08
membersergio5822-Jul-11 5:08 
GeneralShowing multiple popups at the same time. Pin
kdlc19-Jan-09 8:56
memberkdlc19-Jan-09 8:56 
GeneralUnable to close the popup with the close button!!! Pin
harvindersingh1151-Oct-08 4:04
memberharvindersingh1151-Oct-08 4:04 
GeneralRe: Unable to close the popup with the close button!!! Pin
edzjx13-Feb-10 9:49
memberedzjx13-Feb-10 9:49 
GeneralRe: Unable to close the popup with the close button!!! Pin
jamslove16-Aug-10 5:29
memberjamslove16-Aug-10 5:29 
GeneralRe: Unable to close the popup with the close button!!! Pin
nikoskritikos30-Aug-10 6:47
membernikoskritikos30-Aug-10 6:47 
GeneralRe: Unable to close the popup with the close button!!! Pin
Member 1145156918-Aug-15 0:17
memberMember 1145156918-Aug-15 0:17 
QuestionHow to use this in a project C# Pin
harvindersingh11529-Sep-08 4:22
memberharvindersingh11529-Sep-08 4:22 
AnswerRe: How to use this in a project C# Pin
harvindersingh1151-Oct-08 5:03
memberharvindersingh1151-Oct-08 5:03 
GeneralRe: How to use this in a project C# Pin
lasai27-Jan-10 16:48
memberlasai27-Jan-10 16:48 
GeneralExcellent Work........... Pin
Member 401738119-Aug-08 7:14
memberMember 401738119-Aug-08 7:14 
GeneralFrom right to left order Pin
ammsamm22-Oct-07 1:40
memberammsamm22-Oct-07 1:40 
GeneralNew version anyone Pin
Nick Waelti26-Aug-07 0:21
memberNick Waelti26-Aug-07 0:21 
GeneralRe: New version anyone - I'd be glad Pin
semmel7110-Oct-07 9:04
membersemmel7110-Oct-07 9:04 
GeneralRe: New version anyone Pin
Member 131532023-Dec-07 7:22
memberMember 131532023-Dec-07 7:22 
JokeRe: New version anyone Pin
garyjohn_200031-Dec-07 7:06
membergaryjohn_200031-Dec-07 7:06 
NewsUnused Code Pin
pablleaf21-Jun-07 13:07
memberpablleaf21-Jun-07 13:07 
NewsRedundant Line of Code Pin
pablleaf21-Jun-07 11:38
memberpablleaf21-Jun-07 11:38 
GeneralSmall Doubt Pin
GayuDams26-Apr-07 3:05
memberGayuDams26-Apr-07 3:05 
GeneralOpacity Problem with multiple stacking popups Pin
fperugini22-Mar-07 11:18
memberfperugini22-Mar-07 11:18 
AnswerRe: Opacity Problem with multiple stacking popups Pin
fperugini23-Mar-07 5:33
memberfperugini23-Mar-07 5:33 
QuestionRe: Opacity Problem with multiple stacking popups Pin
Styxke5-Apr-07 21:27
memberStyxke5-Apr-07 21:27 
AnswerRe: Opacity Problem with multiple stacking popups Pin
fperugini13-Apr-07 8:16
memberfperugini13-Apr-07 8:16 
GeneralMultiple Highlight Lines Pin
b00tleg22-Mar-07 10:38
memberb00tleg22-Mar-07 10:38 
AnswerRe: Multiple Highlight Lines Pin
Nick Waelti22-Mar-07 23:34
memberNick Waelti22-Mar-07 23:34 
GeneralRe: Multiple Highlight Lines Pin
b00tleg23-Mar-07 8:04
memberb00tleg23-Mar-07 8:04 
GeneralRe: Multiple Highlight Lines Pin
Honey Arora23-May-07 20:29
memberHoney Arora23-May-07 20:29 
GeneralC# version Pin
Ambili_T21-Mar-07 23:23
memberAmbili_T21-Mar-07 23:23 
AnswerRe: C# version Pin
LittleWhiteDog22-Mar-07 22:33
memberLittleWhiteDog22-Mar-07 22:33 
QuestionHowto move the popup with the grip? Pin
LittleWhiteDog14-Mar-07 6:32
memberLittleWhiteDog14-Mar-07 6:32 
AnswerRe: Howto move the popup with the grip? Pin
Nick Waelti15-Mar-07 3:42
memberNick Waelti15-Mar-07 3:42 
QuestionRe: Howto move the popup with the grip? [modified] Pin
LittleWhiteDog21-Mar-07 6:20
memberLittleWhiteDog21-Mar-07 6:20 
QuestionExtract the image Pin
LittleWhiteDog13-Mar-07 23:54
memberLittleWhiteDog13-Mar-07 23:54 
AnswerRe: Extract the image Pin
Nick Waelti15-Mar-07 3:41
memberNick Waelti15-Mar-07 3:41 
NewsRe: Extract the image [modified] Pin
LittleWhiteDog16-Mar-07 0:22
memberLittleWhiteDog16-Mar-07 0:22 
Questionediting the dll file?!? Pin
thebirdman19849-Mar-07 2:45
memberthebirdman19849-Mar-07 2:45 
AnswerRe: editing the dll file?!? Pin
thebirdman19849-Mar-07 4:35
memberthebirdman19849-Mar-07 4:35 
AnswerRe: editing the dll file?!? Pin
Nick Waelti15-Mar-07 3:39
memberNick Waelti15-Mar-07 3:39 
GeneralThe popup only fires in form load. Pin
astanton197821-Feb-07 3:06
memberastanton197821-Feb-07 3:06 
GeneralRe: The popup only fires in form load. Pin
astanton197821-Feb-07 5:05
memberastanton197821-Feb-07 5:05 
GeneralPort code to VS .NET Pin
utstudent26-Jan-07 17:37
memberutstudent26-Jan-07 17:37 
GeneralRe: Port code to VS .NET Pin
waltersenekal19-Feb-07 4:51
memberwaltersenekal19-Feb-07 4:51 
GeneralRe: Port code to VS .NET Pin
utstudent19-Feb-07 15:44
memberutstudent19-Feb-07 15:44 
QuestionYes No Replies Pin
davidswift12-Jan-07 5:28
memberdavidswift12-Jan-07 5:28 
AnswerRe: Yes No Replies Pin
Nick Wälti15-Jan-07 20:57
memberNick Wälti15-Jan-07 20:57 
QuestionUse in Threads Pin
K32127-Nov-06 12:57
memberK32127-Nov-06 12:57 
GeneralAvoid losing focus when popup appears Pin
calis online16-Oct-06 0:12
membercalis online16-Oct-06 0:12 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 23 Mar 2006
Article Copyright 2006 by Nicolas Wälti
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid