Click here to Skip to main content
15,888,218 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was trying to creating a progress bar that was color coded in relation to the value. For example, from 0-35, the progress bar should be red-colored and above 35, green colored. Any idea how I can go about doing it?
Posted
Comments
Ron Beyer 13-Dec-13 0:07am    
Are you using Winforms or WPF or ASP or GTK... please let us know what UI framework you are using.
Member 10375570 13-Dec-13 3:50am    
Windows form application VB

Please, read this article: Progress bars[^]. There you'll find many useful information about using progress bars.

Here is very interesting article on CP KB: Custom ProgressBar Control[^]
 
Share this answer
 
Divide progress bar into two based on 35:65 ratio and make it look like one progress bar in UI. Then, write your code to show progress in the first part in red color and on completion of the first part, show progress in 2nd part in green color. Calculate progress considering first and 2nd part as one.

Thanks,
 
Share this answer
 
Comments
Member 10375570 13-Dec-13 3:57am    
but sir, how can i code this??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900