Click here to Skip to main content
Licence 
First Posted 27 May 2004
Views 89,960
Bookmarked 86 times

BusyBar control

By | 8 Jun 2004 | Article
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

About the Author

TeeBee303

Web Developer

Switzerland Switzerland

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralObject Disposed Exception Fix Pinmemberjrlang123223127:04 24 Feb '09  
GeneralBusy bar repaint problem PinmemberIvan Mitev5:13 13 Oct '04  
GeneralRe: Busy bar repaint problem PinmemberIvan Mitev4:17 14 Oct '04  
GeneralRe: Busy bar repaint problem PinmemberIvan Mitev4:32 15 Oct '04  
GeneralRe: Busy bar repaint problem PinmemberTeeBee3030:30 17 Oct '04  
GeneralA little Modification to use more easy in VS.NET IDE PinmemberIvan Mitev21:17 12 Oct '04  
GeneralRe: A little Modification to use more easy in VS.NET IDE PinmemberTeeBee3034:50 13 Oct '04  
GeneralRe: A little Modification to use more easy in VS.NET IDE PinmemberIvan Mitev5:01 13 Oct '04  
GeneralNice job! Pinmemberpdelmundo10:23 18 Jun '04  
GeneralRe: Nice job! PinmemberTeeBee30322:56 18 Jun '04  
Generalfading an image PinmemberVladimir Ralev6:34 9 Jun '04  
GeneralReduce flickering PinmemberMCHANNER7:18 3 Jun '04  
GeneralRe: Reduce flickering Pinmemberkleinux4:22 9 Jun '04  
GeneralRe: Reduce flickering PinmemberTeeBee30322:22 9 Jun '04  
QuestionCombinated Busy- an Progressbar? PinmemberWolfgang Kleinschmit1:24 3 Jun '04  
AnswerRe: Combinated Busy- an Progressbar? PinmemberTeeBee3034:33 3 Jun '04  
GeneralRe: Combinated Busy- an Progressbar? PinmemberWolfgang Kleinschmit4:54 3 Jun '04  
GeneralRe: Combinated Busy- an Progressbar? PinsussAnonymous0:30 4 Jun '04  
Generaland to add... Pinmembernorm.net0:58 28 May '04  
GeneralRe: and to add... PinmemberTeeBee3031:03 28 May '04  
GeneralRe: and to add... Pinmembernorm.net1:08 28 May '04  
GeneralRe: and to add... PinmemberTeeBee3031:17 28 May '04  
GeneralRe: and to add... PinmemberTeeBee3030:51 9 Jun '04  

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.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 9 Jun 2004
Article Copyright 2004 by TeeBee303
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid