Thursday 15 August 2013

progress bar - c# progressbar not working correctly -


I have a progress bar in my application, what it should do is equal to the counter value. The progress bar has a maximum of 100 and the minimum is 0. When the program is run, it increases the bar to a very small percentage.

  while (counter & lt; numerical UPDown1.Value) {timer1. Start (); Client.Send (message); Counter ++; Timer1.Stop (); ProgressBar1.Value = Counter; }   

You set the maximum set 100 so that your counter is up to 100 Reaches. Keep it and try progressBar1.Maximum = (int) numericUpDown1.Value;

No comments:

Post a Comment