Progress Bar

  • Thread starter Thread starter Carl Tam
  • Start date Start date
C

Carl Tam

Hi folks,
I got a question about using VB to make a bar, I know
that progress bar
in VS is built-in and you don't need to really code it.
But the bar I want
to make is kinda like a bar fill with color and with the
percentage (say,
100% is the max) goes up, the color would be different,
for example, if you
have winamp with the base skin, the higher the volume it
goes, the color
would turn into red; the lower it goes, it will turn
yellow.
This is kinda chanllenge to me and hope I can find
some clues on both
link resources and thoughts.
Thanks
Carl
 
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1829&lngWId=10

There are quite a few, try this one, or if you dont like it use google to
search.

OHM


Carl said:
Hi folks,
I got a question about using VB to make a bar, I know
that progress bar
in VS is built-in and you don't need to really code it.
But the bar I want
to make is kinda like a bar fill with color and with the
percentage (say,
100% is the max) goes up, the color would be different,
for example, if you
have winamp with the base skin, the higher the volume it
goes, the color
would turn into red; the lower it goes, it will turn
yellow.
This is kinda chanllenge to me and hope I can find
some clues on both
link resources and thoughts.
Thanks
Carl

Regards - OHM# (e-mail address removed)
 
* "Carl Tam said:
I got a question about using VB to make a bar, I know
that progress bar
in VS is built-in and you don't need to really code it.
But the bar I want
to make is kinda like a bar fill with color and with the
percentage (say,
100% is the max) goes up, the color would be different,
for example, if you
have winamp with the base skin, the higher the volume it
goes, the color
would turn into red; the lower it goes, it will turn
yellow.
This is kinda chanllenge to me and hope I can find
some clues on both
link resources and thoughts.

Why not implement a control like this on your own? For example in a
usercontrol. You can draw the gradient in the control's 'Paint' event
with the 'LinearGradientFill' class.
 
Herfried,

Why the one in the link OHM did suplied is very nice?
Why not implement a control like this on your own? For example in a
usercontrol. You can draw the gradient in the control's 'Paint' event
with the 'LinearGradientFill' class.

Cor
 
Back
Top