Click here to Skip to main content
11,928,003 members (27,015 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 Smile | :)


  • 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

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 

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.151126.1 | Last Updated 23 Mar 2006
Article Copyright 2006 by Nicolas Wälti
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid