Reputation: 37
It's my first time to use ProgressBar
s in WindowsForms and I have a specific float variable that changes repeatedly that I want to display in the ProgressBar
any idea how to do it ?
These are the six variables that I need to display on progress bars:
float[] emo = new float[6];
emo[0] = face.Emotions.Fear;
emo[1] = face.Emotions.Anger;
emo[2] = face.Emotions.Surprise;
emo[3] = face.Emotions.Joy;
emo[4] = face.Emotions.Sadness;
emo[5] = face.Emotions.Disgust;
//progressBar1.Increment(face.Emotions.Fear);
Upvotes: 0
Views: 76
Reputation: 38
You simply have to set the Value
property of the ProgressBar
to the variable you want to display. Value is an int
property so you would have to convert from float
to int
.
Upvotes: 1