Is there a way to change the color of the progress bar colors and the size of the blocks in the progress bar cause they are huge and i want smaller ones and i want it to change to a certain color when it gets so high. Thanks
Write your own activeX control. You'd have properties for the minimum and maximum values, plus the number of blocks to draw for (max - min). When the current value exceeded the value needed to draw a block, you would use the .line method on the form inside a loop to draw the correct size box (don't forget to include white-space between the blocks!). Handling the colors is even easier... you decide a starting and ending color, and calculate a color increment. Every line you draw uses the new color, then increments the current color value.
Or, look through an issue of VBPJ magazine to see if someone is selling a control close to what you want.
I have created a progress bar today. With a little modification it can do what you want with the colours.
But it does not have blocks. It is one long continuous bar which changes colour (white to blue) - I prefer this look over the traditional blocks.
If you want it, send me an e mail to swilliams@paragon.bm
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.