I am coding a form in C# in which you enter a value in a NumericUpDown box and when the button is clicked underneath the progress bar will increase by the value entered.
I used a timer for this with the code being :
private void ProgressBar_Tick(object sender, EventArgs e)
{
if (filesize <= 60)
sixtyfree.Increment(filesize);
}
filesize is the name of the NumericUpDown box, i have converted this value to an int so that it would work with this. The problem i face is that no matter what number under 60 i enter it fills the progress bar all the way, instead of only by the amount that is entered in "filesize", can anyone help me solve this ?
Aucun commentaire:
Enregistrer un commentaire