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:
- Four status modes:
- Customisable fonts, colors, and title.
- Designer support; add items using designer and edit them live.
- Empty items; show a rectangle in the designer only (to make it easy to see your item).
- Percentage display.
- Progress bar display behind text.
- Custom progress values.
This is basically version 2 of my original control: StatusLabel.