VS2010 - How do you give Progress Bars Different Colors.
VS2010 - How do you give Progress Bars Different Color.
*I was wandering to make my application more colorful, To give a different color to progress bars.
*I have tried searching in the past but didn't have any luck.
*Is there some sort of property I didn't know about that allows you to do so?
*If there is a quick way to do it please feel free to reply. If I need to download something thats fine as well.
Please leave all information in the reply!
Program Version: Visual Studio 2010 Ultimate
Language: Visual Basics
Re: VS2010 - How do you give Progress Bars Different Colors.
Nope. The progress bar inherits its colours from the visual style employed by Windows on the user's computer so even if you change it on your computer it won't necessarily appear the same on another one.
Re: VS2010 - How do you give Progress Bars Different Colors.
This is a progressbar control that I often use. Half way down the page there is an updated version of the control (Version 1.2).
Please note this code will not work properly when visual style is not enabled.
http://emoacht.wordpress.com/2011/10...-visual-style/
Re: VS2010 - How do you give Progress Bars Different Colors.
You could always use a label as a progressbar and set the BackColor as you require. It is not as pretty as the progressbar control itself, but it is simple and effective.
Code:
Private Sub Form1_Click(sender As Object, e As System.EventArgs) Handles Me.Click
ProgressBar1.Value = 0
Timer1.Interval = 100
Timer1.Start()
Label1.Width = 0
End Sub
Private Sub Timer1_Tick(sender As Object, e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Value += 1
Label1.Width += 3
If ProgressBar1.Value = 100 Then
Timer1.Stop()
End If
End Sub
Re: VS2010 - How do you give Progress Bars Different Colors.
Why not use a picturebox and you could paint different colors as you desire
starting dark blue going to light blue then going red then green im not sure if you want different colors or just one different color if only one color tou can try espanolita's way
Re: VS2010 - How do you give Progress Bars Different Colors.
How would I be able to do this with picture Box's Will it look similar and have the animation that the progress bar itself has? I just really like customization that's all.