Click to See Complete Forum and Search --> : Custom user control (Progressbar)


aaronking
November 30th, 2009, 03:34 AM
Hello,

I am trying to create a vertical progressbar type user control.

I want to be able to set the max / min of the progressbar as well as setting the value

But the thing I want is able to have green at the bottom fading into red up the top like in this image: http://www.planetm1.net/aaron/bar.gif

But I don’t know how or where to start.

Is there a custom progressbar I can use?

Or can someone provide some sample code for me?

Thanks.

HanneSThEGreaT
December 1st, 2009, 01:21 AM
Here is an article I wrote about a gradient progressbar component. Yes, it is in C#, but it is a component - which means that you simply have to add a reference to this dll / or add it to your toolbox. It should be what you need :)

http://www.codeguru.com/csharp/csharp/cs_syntax/componentdevelopment/article.php/c15147__1/

I hope it helps !