Click here to Skip to main content
11,479,412 members (57,684 online)
Click here to Skip to main content

BusyBar control

, 8 Jun 2004 96.3K 1.9K 87
Rate this:
Please Sign up or sign in to vote.
Custom Control to display busyness

Introduction

A busy dialog often shows the standard (boring) wait cursor. To give applications a different feel, I created a few controls called BusyBars.

Classes in this assembly

The assembly contains 3 classes:
  • ColorFadeBusyBar
  • ImageFadeBusyBar
  • BlockFadeBusyBar

ColorFadeBusyBar class

The ColorFadeBusyBar class provides a color slide bar running from left to right. The start and end color of the bar can be set:

For best results, set the Color2 property to the same color as the control background color (Default):

ImageFadeBusyBar class

Instead a color slided bar, the ImageFadeBusyBar control displays an image:

BlockFadeBusyBar class

The BlockFadeBusyBar control goes a total different way. It displays a few blocks and one block is drawn in another color. It is also moving from the left to the right:

Optionally the random mode can be activated.

Something similar for unmanaged code can be found here.

Using the code

Using the control is very easy. Simply add a reference to your .net project, add it to your tool box and then drag it to your form. All necessary properties can be changed through the visual studio property window. Download the whole solution which includes the source code and the demo application shown on the screenshots below.

Feedback

Send me feedback if you have some additional ideas.

History

May, 19. 2004 -- Version 1.0

  • Initial Creation

Jun, 07. 2004 -- Version 1.1

  • Reduced flickering. Thx to MCHANNER for the code
  • Added status text feature. Thx to norm.net for the idea

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

Share

About the Author

TeeBee303
Web Developer
Switzerland Switzerland
No Biography provided

Comments and Discussions

 
GeneralObject Disposed Exception Fix Pin
jrlang1232231224-Feb-09 8:04
memberjrlang1232231224-Feb-09 8:04 
GeneralBusy bar repaint problem Pin
Ivan Mitev13-Oct-04 6:13
memberIvan Mitev13-Oct-04 6:13 
GeneralRe: Busy bar repaint problem Pin
Ivan Mitev14-Oct-04 5:17
memberIvan Mitev14-Oct-04 5:17 
GeneralRe: Busy bar repaint problem Pin
Ivan Mitev15-Oct-04 5:32
memberIvan Mitev15-Oct-04 5:32 
GeneralRe: Busy bar repaint problem Pin
TeeBee30317-Oct-04 1:30
memberTeeBee30317-Oct-04 1:30 
GeneralA little Modification to use more easy in VS.NET IDE Pin
Ivan Mitev12-Oct-04 22:17
memberIvan Mitev12-Oct-04 22:17 
GeneralRe: A little Modification to use more easy in VS.NET IDE Pin
TeeBee30313-Oct-04 5:50
memberTeeBee30313-Oct-04 5:50 
GeneralRe: A little Modification to use more easy in VS.NET IDE Pin
Ivan Mitev13-Oct-04 6:01
memberIvan Mitev13-Oct-04 6:01 
GeneralNice job! Pin
pdelmundo18-Jun-04 11:23
memberpdelmundo18-Jun-04 11:23 
GeneralRe: Nice job! Pin
TeeBee30318-Jun-04 23:56
memberTeeBee30318-Jun-04 23:56 
Generalfading an image Pin
Vladimir Ralev9-Jun-04 7:34
memberVladimir Ralev9-Jun-04 7:34 
GeneralReduce flickering Pin
MCHANNER3-Jun-04 8:18
memberMCHANNER3-Jun-04 8:18 
GeneralRe: Reduce flickering Pin
kleinux9-Jun-04 5:22
memberkleinux9-Jun-04 5:22 
GeneralRe: Reduce flickering Pin
TeeBee3039-Jun-04 23:22
memberTeeBee3039-Jun-04 23:22 
QuestionCombinated Busy- an Progressbar? Pin
Wolfgang Kleinschmit3-Jun-04 2:24
memberWolfgang Kleinschmit3-Jun-04 2:24 
AnswerRe: Combinated Busy- an Progressbar? Pin
TeeBee3033-Jun-04 5:33
memberTeeBee3033-Jun-04 5:33 
GeneralRe: Combinated Busy- an Progressbar? Pin
Wolfgang Kleinschmit3-Jun-04 5:54
memberWolfgang Kleinschmit3-Jun-04 5:54 
GeneralRe: Combinated Busy- an Progressbar? Pin
Anonymous4-Jun-04 1:30
sussAnonymous4-Jun-04 1:30 
Generaland to add... Pin
norm.net28-May-04 1:58
membernorm.net28-May-04 1:58 
GeneralRe: and to add... Pin
TeeBee30328-May-04 2:03
memberTeeBee30328-May-04 2:03 
GeneralRe: and to add... Pin
norm.net28-May-04 2:08
membernorm.net28-May-04 2:08 
GeneralRe: and to add... Pin
TeeBee30328-May-04 2:17
memberTeeBee30328-May-04 2:17 
GeneralRe: and to add... Pin
TeeBee3039-Jun-04 1:51
memberTeeBee3039-Jun-04 1:51 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150520.1 | Last Updated 9 Jun 2004
Article Copyright 2004 by TeeBee303
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid