Click here to Skip to main content
15,861,168 members
Articles / Programming Languages / Visual Basic

Status List - Vista Style

Rate me:
Please Sign up or sign in to vote.
4.52/5 (12 votes)
31 Mar 2007CPOL1 min read 59.4K   2.3K   89   10
A progress list for displaying the status of various tasks

Screenshot - Screenshot.jpg

Introduction

A while back, I created what I called a status label. The idea was to simplify task progress notifications. Often, you don't know how long a given task is going to take, or have any other way of tracking progress. This is where it came in handy. Anyway, truth be told, I wanted the same control, but with the ability to track those tasks where time/size or some other measure was available. I also wanted it to look a little nicer, with designer support and a Vista feel to it. It has come in very useful to me, and I hope the feedback tells me you have found a use as well.

I have renamed it StatusList, since that seemed more appropriate.

Using the code

The code usage has been made simple. Also there is designer support, so it should be fairly easy to implement into any project.

Simply add a reference to the DLL in your project and then add the control to your form. Everything is available from the designer, so there's no real need to show you all the code. I have attached the source code above, so it should be fairly easy to work out how to modify it for your needs.

Points of interest

The key features of this control are as follows:

  1. Four status modes: Pending, Completed, Running, Failed.
  2. Customisable fonts, colors, and title.
  3. Designer support; add items using designer and edit them live.
  4. Empty items; show a rectangle in the designer only (to make it easy to see your item).
  5. Percentage display.
  6. Progress bar display behind text.
  7. Custom progress values.

History

This is basically version 2 of my original control: StatusLabel.

License

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


Written By
Software Developer uSoftware
Australia Australia
Shaps currently works as the Senior Networks Administrator for a small IT company in Australia. He is also involved in various software developments, for Windows, Windows Mobile, iPhone, Mac and occasionally the web. His central focus in this area, is User Interface design.

If he had spare time, he'd play some tunes, read a book or visit the gym. Until then, he writes small applications for the iPhone that help improve his productivity at work.

Comments and Discussions

 
GeneralMy vote of 5 Pin
Mazen el Senih7-Apr-12 2:43
professionalMazen el Senih7-Apr-12 2:43 
QuestionArithmetic operation resulted in an overflow? Pin
digitalcircuit3693924-Feb-08 3:52
digitalcircuit3693924-Feb-08 3:52 
GeneralVS 2003 .NET SP 1 Pin
Mad Eddie21-May-07 0:11
Mad Eddie21-May-07 0:11 
GeneralRe: VS 2003 .NET SP 1 Pin
Shahpour21-May-07 21:05
Shahpour21-May-07 21:05 
GeneralRe: VS 2003 .NET SP 1 Pin
Mad Eddie22-May-07 5:45
Mad Eddie22-May-07 5:45 
Thanks for the reply Smile | :)

At the risk of being shown up I can't seem to import the vb files in order to re-create the project in VS 2003. I don't suppose anyone has already done this? or any hints on doing it?
GeneralRe: VS 2003 .NET SP 1 Pin
Shahpour22-May-07 6:00
Shahpour22-May-07 6:00 
GeneralVery Good Work Pin
Irwan Hassan7-Apr-07 6:22
Irwan Hassan7-Apr-07 6:22 
GeneralRe: Very Good Work Pin
Shahpour7-Apr-07 15:41
Shahpour7-Apr-07 15:41 
Generalnice one Pin
Igor Velikorossov3-Apr-07 19:42
Igor Velikorossov3-Apr-07 19:42 
GeneralThis is pretty nice. Pin
Shog931-Mar-07 10:28
sitebuilderShog931-Mar-07 10:28 

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.