Click here to Skip to main content
Email Password   helpLost your password?

Introduction

I've developed an XpProgressBar that looks like the one used by the default WinXP theme. I have added a lot of features to fully customize its look.

Very important !!!

If you update the position of the progress bar in a tight loop or in a CPU intensive area and you feel that the bar is not repainted, use the following code in the place where you have problem:

Application.DoEvents();

Please don't use Invalidate(), .Refresh() or .Update(). This can result in low performance and sometimes these don't work.

XpProgressBar features

The control offers the following features:

The properties of the control:

GradientStyle

You can set the GradientStyle property to obtain some of these styles:

Animation sample

The following picture shows an animation sample with different timers and looks:

License

The control and the source code are completely free for commercial and non commercial use.

History

Updates

Visit my page Marcos Meli and come back with updates soon.

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralVertical Progress BAR
andrew_166
2:45 12 Jun '08  
Hi,

Do you have a link to version 2.0? as the one here is version 1.0 and does not allow the progress bar to operate vertically (up and down)

Thanks,

Andy
Generalline on the progress Bar
maornit
5:04 6 Nov '07  

How can i add lines on your ProgressBar?
I want to add 3 lines as a borders on the progress bar.( for example 25%, 50%, 75%)

Thanks,
Oranit
maornit@gmail.com
Generalthanks
ququer
18:09 9 Sep '07  
Smile
Generalprogressbar on list view
anu jaggi
2:19 2 May '07  

hello

i want to display progress bar on list view without using MFC
if i add files in list control than progress bar should be shown under "PROGRESS" column as other
details are shown under other columns

thanks

GeneralTriggering the progressbar from backgroundworker
UltraWhack
9:35 19 Apr '07  
Hi - this looks great. Have you tried running this from a backgroundworker to monitor long-running processes like copying large files and monitoring "file# of files" being copied ?

If you have any ideas on that, it'll be great.
GeneralThanks !
wick95
5:45 12 Apr '07  
Thanks from Paris for this beautiful works !
Regards.


GeneralGood Job
Jeffro Bodine
6:30 7 Apr '07  
Fantastic progress bar, and a big improvement over the default Microsoft bar. This really helped improve the "look and feel" of my application. Your work is much appreciated!

Jeff Dodson
GeneralREALLY GREAT!
Selecters
5:45 13 Mar '07  
Marcos, greatings from argentina Wink .
I was reading your email about ndoc on C# mug email list, found filehelpers.com, and now Im here.
You're making a really good job, thanks for your time and effort!
Big Grin
GeneralRe: REALLY GREAT!
Marcos Meli
5:52 13 Mar '07  
Gracias !!

Do donde sos ?? de bs as ?

Ahora estamos terminando otras cositas porque queriamos armar una empresa con librerias tipo los FileHelpers.

http://devoo.net

Ahi vas a encontrar mi tesis de grado donde era más fanatico de .NET y le pegaba duro a Java jajajajaj

Abrazo



GeneralMagnificent submission
Huntermonk88
7:11 21 Feb '07  
Looking around for a replacement progress bar control for Windows forms.

Integrated CCRP's progress bar control into a project of mine.
While it works great, I really wanted to have a pure .NET control to work with.

Didn't imagine I would find one that had the source code to boot!

Thank you very much for not only building this, but providing the source as well.

Tip my hat to you sir.
Generalpermission problems
merrittholmes
6:35 16 Feb '07  
Hi,

I love your progressbar. I am using it happily in my dev environment and then when I build a setup file and install on a different machine, my Excel VSTO add-in loads fine and semes to work except when it tries to use the prgress bar and it complains that there are no execute permissions granted. I have set the whole install directory as full trust with Caspol but still no luck.

Any ideas?

Mike

Mike
GeneralCan't find Vertical ProgressBar (not only horizontal)
silorenz
0:54 31 Jan '07  
Hi,

thanks a lot for that really great control. You mentioned a version 2 with vertical progress bar support. I downloaded the sources from www.filehelpers.com. I also found the Framework.Controls.ProgressBar.dll. But I can't see, how I can use it as vertical. Can you help me?
GeneralRe: Can't find Vertical ProgressBar (not only horizontal)
Marcos Meli
8:13 31 Jan '07  
Hi

In fact I only release the verion 1.0of the progress bar, this data fo 1.5 and 2.0 are only a tentative roadmap and the CodeProject editors remove this word =( so I only was doing some small improviments in the version bundled with the FileHelpers

Sorry for this
Cheers


GeneralCan I Suggest a small improvement ?
TheDarkMan
2:03 26 Jan '07  
Hi

I would like to precise that you did a very great job.
But on my PC every time that i resize or move the window containing the progressbar, the redrawing of this one is not perfect.
To solve this problem, I had e.Graphics.Clear(this.BackColor); as first line in the protected override void OnPaint(PaintEventArgs e) method.


GeneralRe: Can I Suggest a small improvement ?
Marcos Meli
3:53 26 Jan '07  
Hi

Thanks a lot for the report, I will keep it in mind for the next version
and tahbks also for the solution =)

Cheers


GeneralRe: Can I Suggest a small improvement ?
TheDarkMan
21:49 29 Jan '07  
At your service Big Grin
GeneralThanks
napo@burgasnet.com
2:10 19 Jan '07  
Thaks man! Clean and beauty.
GeneralRe: Thanks
Marcos Meli
3:15 19 Jan '07  
Thanks to you Smile

You can download the last version that is bundled with the FileHelpers here

www.filehelpers.com

I need a bit of time to upload the new version =(

Cheers
Marcos


GeneralMarquee mode
roel_v
19:01 20 Dec '06  
Any chance you could add a marquee mode like the standard .NET progress bar has?

That would be awesome,

Roel
GeneralColorsXp
LupineRanger
3:16 20 Dec '06  
I have to say this is quite easily the best progress bar I've seen. The only problem I have with it is the ColorsXp Property... I spent deciding on my colours and then accidentally changed it to true. I lost all of the properties that I'd set. Couldn't you just make it so that when you set it to true it leaves the colours as they are, but just draws it different?

I also noticed that you can't reset the colours to their default values. Why didn't you use something like this -

[DefaultValue(GetType(Color),"170, 240, 170")]
I'm not a C# programmer but I'm almost positive that should work.
GeneralRe: ColorsXp
Marcos Meli
3:23 20 Dec '06  
Hi

Thanks a lot for your comments =)

You are completely right, this versions of the ProgressBar has some little problems that I already fix for the next version and I also add an option to save the PB to a file so you use the same between projects.

I´va also added the defaults values and fix the Steep -> Step type error

You can found an update version od the progress bar in the distribution of my main project here:

FileHelpers[^]

Cheers
Marcos


QuestionA great submission!
minart
0:59 4 Dec '06  
This looks great, I'm fairly new to C# - I've downloaded and added the DLL to my project and added the component to my Form Design... Can anyone show me how I should link this into the functions (which start processes) I have which require the progress bar in the first place?
Thanks again.

- M

GeneralProblem with anchor property
Morningkill
5:48 6 Nov '06  
The anchor property is not handled correctly (I'm using the 1.5 version in Visual Basic 2005), specificaly Anchor= "Left,Right"

It's a very nice control, and I hope you'll be able to correct this.
GeneralRe: Problem with anchor property
Bengie
22:58 24 Feb '07  
Hej!

Great control, but you didn't do the testing with anchor property.
The problem is in changing Width property of control in OnPaint method!

Delete that line in OnPaint method:
this.Width = 6 + mSteepTotal * mMaxSteeps;
Regards,
Benjamin


GeneralSimply Brilliant
KiaT2
18:00 5 Nov '06  
My first ever msg in this forum has got to be dedicated to u man...
Thanks very much for the effort !!
Cheers ~
Cool


Last Updated 5 Nov 2005 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2010