Skip to main content
Email Password   helpLost your password?

InfoBar03_Normal.png

snapshot1.png

Introduction

The NotificationBar gives you an easy to use control that can replace message boxes / pop up boxes where they are not really needed. When the need arises to display a small amount of information without distracting users with pop ups, this would be a solution worth checking out.

Anyone who has used IE6+ on Win XP SP2+ knows about those Information / Notification bars you get when trying to download a file etc. That is what I have brought here today. A small, completely C# version of that control.

Current Features

Using the code

This control is very easy to use.

The classes and methods included in this library are listed below.

NotificationBar

Extending the Control class, the NotificationBar class is the only class in the library and houses the control.

Overridden methods and properties where left out of the list above.

Using the control is as easy as this:

//Add the using statement for the control's namespace
using WinComponents.Controls; 
//Then add the control your font, text, and anything else.
NotificationBar infoBar = new NotificationBar ();
infoBar.Name = "informationBar1";
infoBar.Size = new Size(100, 20);
infoBar.Dock = DockStyle.Top;
infoBar.Font = new Font(FontFamily.GenericSansSerif, 8.25f);
infoBar.Text = "Hello, here is some info!";
infoBar.Show();  
//Adding a pop-up menu or an image is as simple as
infoBar.OnClickMenuStrip = contextMenuStrip1;
infoBar.SmallImageList = imageList1;
infoBar.ImageIndex = 2;

These are the results you should get:

Normal view of information bar with short string:

InfoBar03_Normal.png

Hovered view of information bar with short string:

InfoBar03_Hover.png

And finally, the normal and hovered states with a longer string:

InfoBar04_Normal.png

InfoBar04_Hover.png

History

June 04, 2008 - Version 1.0.0 released

June 04, 2008 - Version 1.0.1 released

July 02, 2008 - Version 1.0.2 released

July 27, 2008 - Version 1.0.4 released

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
QuestionSame thing in Internet Explorer Pin
1016
23:58 18 Feb '09  
NewsNotification Bar Pin
Member 2988305
5:34 24 Nov '08  
GeneralDemo Project Pin
inetfly123
3:13 3 Jul '08  
AnswerRe: Demo Project Pin
Cory Borrow
5:55 3 Jul '08  


Last Updated 27 Jul 2008 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009