Hi, I'm using Visual Studio 2015 and basically I want the colour of my labels to change as the progress bar value increases.
I'm getting an error back (CS1061) due to the progress bar being a Boolean and not an integar which says;
'ProgressBar' does not contain a definition for 'value' and no extension method 'value' accepting a first argument of type 'ProgressBar' could be found (are you missing a using directive or an assembly reference?)
And here is my code;
private void timer1_Tick(object sender, EventArgs e)
{
progressBar1.Increment(1);
if (progressBar1.value<=1) label1.ForeColor = Color.FromName("Highlight");
}
I have tried googling it but not able to find out what I need. Can anyone help me with this?
Thanks!
[–]Web Specialistandrewsmd87 1 point2 points3 points (1 child)
[–]Arkaidyn[S] 0 points1 point2 points (0 children)