Important alert: (current site time 7/16/2013 2:50:30 AM EDT)
 

winzip icon

Cool XP ProgressBar 2.0 (MultiStyle ProgressBar)

Email
Submitted on: 9/12/2004 11:54:09 PM
By: MArio Flores G 
Level: Intermediate
User Rating: By 102 Users
Compatibility: VB 6.0
Views: 47999
(About the author)
 
     The New Release of the Awesome XP Progress Bar is now available. The new control offers more detailed painted controls, with more OS capability, now supports NT4, Also included the Media Player Progress Bar Style, and many others. The Control itself as it predecessor does not need any dependency file and its very light in size. Now It haves 8 Styles to choose from. The 5 New Styles are Limited to horizontal Orientation as I don’t use vertical very often , but if you like using it just code it your self, the code is very easy to follow and very understandable . You are free to use this code on any way you wish, on commercial apps, on freeware or any other except selling the code claiming that is yours. Enjoy! If you have any question, you can contact me on my e-mail sistec_de_juarez@hotmail.com or mflores@ansell.com Feedback is Welcome 14 September New Style ::: "" METALLIC XP"" Added Font capability

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 23 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

9/13/2004 12:36:52 AMMArio Flores G

FeedBack is Welcome

Mario Flores
(If this comment was disrespectful, please report it.)

 
9/13/2004 12:50:16 AMDaniel W Elkins

Very nice, 5 globes. 24 views and I'm the only one to vote/comment so far...why is it so hard for people to leave comments/votes?
(If this comment was disrespectful, please report it.)

 
9/13/2004 1:20:55 AMTimothy Coutlakis

look's great
(If this comment was disrespectful, please report it.)

 
9/13/2004 3:15:53 AMSteve_K

Very, very nice - 5 globes, as always. Keep up the good work!
(If this comment was disrespectful, please report it.)

 
9/13/2004 3:31:10 AMSteve_K

Using a MAX value below or above 100 doesn't seem to change anything in the behaviour of the progress bar. Sometimes you need to use non-percentage values for a progress bar, with a maximum below or above 100, and then the progress bar doesn't reflect the value properly ... The progress bar should allow non pertentage values with a free definable maximum value.

Maybe something for the next version ...
(If this comment was disrespectful, please report it.)

 
9/13/2004 3:54:43 AMPhantom Man

I Like It.
Very Nicley Code And Well Presented.
More Code Of This Calibre Is Need On PSC.

Well Done Mario. *****

Kind Regards
Gary
(If this comment was disrespectful, please report it.)

 
9/13/2004 4:50:43 AMPeter.

Excellent as always Mario.
(If this comment was disrespectful, please report it.)

 
9/13/2004 5:30:18 AM

Nice! Very nice! Thanks for sharing. % Globes!
(If this comment was disrespectful, please report it.)

 
9/13/2004 5:32:59 AMCris Friolo

Very nice specially it covers the status bar, 5 globes
(If this comment was disrespectful, please report it.)

 
9/13/2004 6:07:56 AMCarpetboy

nice 5 from me
(If this comment was disrespectful, please report it.)

 
9/13/2004 6:46:44 AMali s

hi
very good progess bars!!
and better is the code!!!
just thanks for submitting this usercontrol, it's too usefull
(If this comment was disrespectful, please report it.)

 
9/13/2004 8:08:19 AMHeriberto Mantilla Santamaría

Very good code, happiness Mario.

Five globes from me.
(If this comment was disrespectful, please report it.)

 
9/13/2004 1:42:55 PMFred.cpp

great work Mario (as usual) Multy style usercontrols are now very popular=)
five pelototas
(If this comment was disrespectful, please report it.)

 
9/13/2004 1:43:05 PMMirko Kressmann

Best looking and variable Progressbar ever here on psc. Thanks for that great code!

Mirko
(If this comment was disrespectful, please report it.)

 
9/13/2004 5:25:32 PMjeroen

Fantastic code ×××××
(If this comment was disrespectful, please report it.)

 
9/13/2004 6:23:53 PMMArio Flores G

The Max Value Property has been Fixed..
the value should now work properly.
Thanks for your support

Mario Flores
(If this comment was disrespectful, please report it.)

 
9/13/2004 7:32:47 PMMike Ulik

Well done!!
(If this comment was disrespectful, please report it.)

 
9/14/2004 4:55:30 AMSlider

Nice one, I'd like to see a way to change the backgroundcolor. Right now, I have 4 white pixels in the corners of the progressbar.
(If this comment was disrespectful, please report it.)

 
9/14/2004 7:08:20 AMPaul Caton

Excellent visuals Mario! Re the comment above me, better still, make the control a region; a lot of work just for four pixels but... I was surprised that VB lets you get away with an enum and property of the same name (BrushStyle) - So VB still surprises me after 10 years! Personaly I'll be moving the StatusBar module code into the control, a neat addition.
(If this comment was disrespectful, please report it.)

 
9/14/2004 1:56:40 PMFred.cpp

nos vemos arriba en la tabla del mes Mario =D México a la alza ;)
(If this comment was disrespectful, please report it.)

 
9/14/2004 4:05:07 PMJoerg Hohaus

Great code, ***** from me.
(If this comment was disrespectful, please report it.)

 
9/14/2004 6:14:46 PMMArio Flores G

I’m going to make a disappointing and very frustrating demand. Someone has been selling my first version of the progress bar and now his charging money for the second one, I must say that I never charged money for any of my controls published here, if you or anyone knows someone who is buying stuff for this thief please let me know. I clearly marked on the statements that no one is entitled to sell this code., no one has the right to take advantage on things that other coders do , maybe later this company is going to steal other coder code, please don’t accept any offer from this kind of people.
http://www.partaksoft.com/ordernow!.htm
If there’s someone that could kick the a$$ on this guy please do so.

(If this comment was disrespectful, please report it.)

 
9/14/2004 10:56:07 PMMArio Flores G


About region of the 4 pixels.. the first version was a region and then i decided to go with putpixel.. if you like that slider, yust download the older version..

New Stile "Windows Metallic XP Progressbar"... enjoy

Fixed Font, Now supports different Fonts
(If this comment was disrespectful, please report it.)

 
9/14/2004 11:36:23 PMPaul Turcksin

Truly amazing. Thanks for sharing this masterpiece. I feel sorry I can only vote once.
(If this comment was disrespectful, please report it.)

 
9/15/2004 12:22:31 AMAly Hirani

This is an amazing with such low CPU Time. 5 globes from me.
(If this comment was disrespectful, please report it.)

 
9/15/2004 10:20:34 PMHeriberto Mantilla Santamaría

Hi Mario, I'll write you in this occasion my comments in Spanish:

* La página que comentas no es accesible ahora y me parece un insulto del hp (y no hablo de la Hewlett-Packard) que esta haciendo eso con tu control.

* Te comento que la nueva versión del control está fabulosa y es bastante funcional.

* Al igual que Paul te sugiero transladar el código del StatusBar al UserControl.

Saludos desde Colombia.
(If this comment was disrespectful, please report it.)

 
9/16/2004 6:22:54 PMMArio Flores G

The module that Heriberto and Paul are talking about (StatusBar) has nothing to do with the progressbar control its just an extra demo to see how a progressbar can be added to the statusbar,but it could be added so it can be more usefull, im going to add it on the next revision. Thanks again
(If this comment was disrespectful, please report it.)

 
9/21/2004 3:20:11 AMScott Brown

nice job mate
(If this comment was disrespectful, please report it.)

 
9/22/2004 9:46:39 AMSchwartz

for x = 1 to 5
vote = vote + 1
next

print vote
>>> vote = 5 globes

nice code

(If this comment was disrespectful, please report it.)

 
9/23/2004 5:30:02 AMJB

excellent job!!! 5 globes from me :)
(If this comment was disrespectful, please report it.)

 
10/5/2004 1:57:09 AMe-roq

5 Globes for sure. :)
Thanks for sharing your code.
(If this comment was disrespectful, please report it.)

 
10/5/2004 5:56:06 AMAlaeddin Hallak

***** in the face of that bastard who steals other's ppl hard work!
(If this comment was disrespectful, please report it.)

 
10/7/2004 12:59:39 AM

Good work!keep it up! 5 frm me.
(If this comment was disrespectful, please report it.)

 
10/11/2004 3:09:54 AMThammanoon Semapru

Good Code for me.
(If this comment was disrespectful, please report it.)

 
10/12/2004 11:52:03 PMDamien Olsen

awesome code, flawless!!
love the office xp style, very clean
(If this comment was disrespectful, please report it.)

 
10/17/2004 2:40:21 AM

Great Thing
(If this comment was disrespectful, please report it.)

 
10/18/2004 11:59:47 AME West

Having an issue, but this control rocks and I want to use it.
Ide like to use the Progresses value to increment the progress:
Progress1.Value = Progress1.Value + 1

This doesnt work because it returns a modified value, not sure why its being modified:
Public Property Get Value() As Long
Value = ((m_Value / 100) * m_Max) / IIf(m_Min > 0, m_Min, 1)
End Property

Is there a way I can get the unmodified progress value to return the exact value.
In other words, if I set the Max to 13000. Ide like to get the value along the range.
Great control none the less.
(If this comment was disrespectful, please report it.)

 
10/22/2004 11:26:11 PM

wow, hello mia
(If this comment was disrespectful, please report it.)

 
10/26/2004 1:32:31 PMPenteay

Just great!
(If this comment was disrespectful, please report it.)

 
10/29/2004 12:59:12 AMBen Gray

OK, I almost much never vote (i know I should) but this control is absolutly sensational. I've voted it 5 stars and almost feel like signing up for another account to vote it 5 stars again.

Thank you so much for your code, it really is the best example of open source progress bars I have ever seen.

You should open a donation service somewhere for people to fund your brilliant work.

Ben
(If this comment was disrespectful, please report it.)

 
11/10/2004 9:47:52 AMJ. Berz

PERFECT! THX!!!
(If this comment was disrespectful, please report it.)

 
11/10/2004 11:53:41 AMCurtW

Mario, latest release has a bug - check the "Use Percent Text" checkbox on your demo's main form when running - the bottom progress bar's % is garbled and the actual % is displayed below the actual progress bar itself. 5 globes for the effort but PLEASE update with a fix.
(If this comment was disrespectful, please report it.)

 
11/10/2004 11:57:08 AMCurtW

I should add that by "bottom progress bar" I mean the one labeled "Picker Color Example". This worked OK in prior versions.
(If this comment was disrespectful, please report it.)

 
11/10/2004 2:24:52 PMZirro Tolerance

Nice progress bar. Only 2 problems i see are the value problems and the percent on the pick color bar. You should not redraw the bar unless the percent changes or it will slow down any loops it deals with. The bar also needs a variable with the current value so that it doesnt return a percent of the value you passed it.

Example:
Dim m_Old_Value as long
Dim m_Current_Value as long

Public Property Get Value() As Long
'Value = ((m_Value / 100) * m_Max) / IIf(m_Min > 0, m_Min, 1)
If m_Value < m_Min Then
Value = m_Min
ElseIf m_Value > m_Max Then
Value = m_Max
Else
Value = m_Current_Value
End If
End Property

Public Property Let Value(ByVal cValue As Long)
m_Value = ((cValue * 100) / m_Max) + m_Min
'PropertyChanged "Value"
If m_Value <> m_Current_Value Then
m_Current_Value = m_Value
DrawProgressBar
End If
End Property
(If this comment was disrespectful, please report it.)

 
11/10/2004 6:42:59 PMShazbot

hmmm... you should get some authorities onto those Partaksoft stealers. Have you tried to confront them via email? ie tell them if they dont remove it you will get the authorities.
(If this comment was disrespectful, please report it.)

 
11/11/2004 3:29:38 PMZirro Tolerance

Te reason the percent was garbled on the bottom percent bar was because the font was set to a weird font.
(If this comment was disrespectful, please report it.)

 
11/18/2004 3:56:48 AMpao_francis

I like your control dude, It beat the progressbar of ciaXP Controls(see http://ciatheco.com)...

If Possible Pls. make a "IP Text box(Xp Style)" control too. Thanks.


(If this comment was disrespectful, please report it.)

 
12/22/2004 7:59:55 AM

Achei exelente o seu trabalho, fico feliz em saber que existe pessoa como você que tem esta dedicação
Mario
(If this comment was disrespectful, please report it.)

 
12/28/2004 3:45:19 PM

you are the best skull in de world, congratulations!!!
(If this comment was disrespectful, please report it.)

 
1/5/2005 6:17:30 PM

Great control - found some bugs though - the metallic style doesnt work vertically, along with a couple others. So this needs checking. But Great control - best i have seen, thanks
(If this comment was disrespectful, please report it.)

 
2/11/2005 3:12:49 AM

Really Great control.
Very good work !
Thank for us.
(If this comment was disrespectful, please report it.)

 
5/4/2005 10:07:49 PMRuturaj

Not all the scrolling styles work in Vertical orientation. I got only Standard , Smooth and Search style to work in Vertical Orientation of progress bar.

Any work around ?
(If this comment was disrespectful, please report it.)

 
5/4/2005 10:11:51 PMRuturaj

"The 5 New Styles are Limited to horizontal Orientation as I don’t use vertical very often , but if you like using it just code it your self, the code is very easy to follow and very understandable"

Sorry ... I missed out this text from your project descruption. Just saw the screen-shot and downloaded it. Worked fine except the known issue of scrolling styles in Vertical orientation.

Thanks for sharing this useful control with us.
(If this comment was disrespectful, please report it.)

 
6/26/2005 2:50:24 PMA. M. Adel

This is my first time I use PlanetSourceCode and I am very impressed with the quality and robustness of the control and the code. Really excellent and great control. I appreciate it a lot. No hesitation you deserve 5 globes.

Thank you so much!
(If this comment was disrespectful, please report it.)

 
7/4/2005 4:27:55 AMSh¦ftY

I tested this out quite a while ago and think its brilliant work m8 5 globes
(If this comment was disrespectful, please report it.)

 
12/7/2005 4:48:31 PMSteppenwolfe

This is very nice work! I might use this in a published product. Thanks for the great contribution.
(If this comment was disrespectful, please report it.)

 
2/11/2006 4:01:12 PMokookooko

Very good job !!!
(If this comment was disrespectful, please report it.)

 
3/9/2006 2:25:45 AMSupernova

Awesome.. 5 globes from me..
(If this comment was disrespectful, please report it.)

 
8/3/2006 11:20:50 AMTom Bruinsma

5 from me! I cant thank you enough, this gave my project the look I was after even though it is in vb!
(If this comment was disrespectful, please report it.)

 
1/29/2007 4:46:35 PMeyuzgul

it's a very good code. Thanks
(If this comment was disrespectful, please report it.)

 
3/25/2007 10:29:12 AMNaeem S Chhutani

CAN you convert it into .NET
THANKS

(If this comment was disrespectful, please report it.)

 
5/8/2007 5:15:45 AMRandolf

sugoi, this was just amazing..^_^
(If this comment was disrespectful, please report it.)

 
6/16/2007 6:28:31 PMPINK

Its perfect! thanks..
(If this comment was disrespectful, please report it.)

 
7/21/2007 4:48:36 PMPINK

Just an addition: If you use this control on MDI child forms, it exposes a fatal failure on control termination. I'm just looking over and if I can find a solution gonna post it soon. I used 6 controls on each MDI child, opening about >6 forms, no problem on the run but as I try to exit the program it gives out a fatal error and terminates. I tracked the error till pdestroy subroutine called form UserControl_Terminate(), may be many recursive calls might be making the stack to run over the heap or similar..
(If this comment was disrespectful, please report it.)

 
7/23/2007 7:30:25 PMPINK

I couldnt paste the whole page, 1000 chars limitation, I dont know links to other sites are allowed or not, but you can find a official fix to this problem and a workaround; disabling windows crash dialog to your app as it means nothing as it occurs at termination. here is the link: http://www.vbaccelerator.com/home/VB/Code/Libraries/XP_Visual_Styles/Preventing_Crashes_ at_Shutdown/article.asp
(If this comment was disrespectful, please report it.)

 
8/27/2007 6:59:07 PMJun Park

I love it !!!
(If this comment was disrespectful, please report it.)

 
10/31/2007 8:59:12 AMjasonh

How do I add the progress bar to my other apps, I tried to add the ctl, doesnt work.
(If this comment was disrespectful, please report it.)

 
1/30/2008 8:43:24 PMchulex

great code, amazing 5 globe for u.
(If this comment was disrespectful, please report it.)

 
4/2/2008 2:30:15 AMPragy

simply rockin!!
Keep up!!
(If this comment was disrespectful, please report it.)

 
4/3/2008 2:08:36 AMPragy

Hi!! Could i get a version compatible with vb express 2008???????
Thnks a lot.
(If this comment was disrespectful, please report it.)

 
4/5/2008 5:28:05 AMRoby66

Excellent!!!
(If this comment was disrespectful, please report it.)

 
4/7/2008 5:37:32 AMPragy

Yeah, one more thing:
The person who does not vote this 5 S**KS
(If this comment was disrespectful, please report it.)

 
7/19/2008 8:38:13 AMMasterBlaster

Someone else is using this code as their own.
http://www.srisource.com/content/view/12/28/
Although they are offering the ocx as freeware the ocx still has "Dananjaya Madushanka" as the creator.

(If this comment was disrespectful, please report it.)

 
7/22/2008 5:25:07 PMHolowcast

I like this sooooooooooo much but i have vb 2008 and it doesn't accept it
please i'm beggin' this would be awsome if it's compactible with 2008 thanks for your time

love it 5 globes (without even testing it :p)
(If this comment was disrespectful, please report it.)

 
8/23/2008 5:31:04 AMvenice

really gr8
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.