Originally posted by Chrom3D
Hi
Everytime I debug it the message box goes instant, anyway to avoid this?
Inside the timer tick do this
progressBar1.Interval(1);
if (progressBar1.Value == progressBar1.Maximum)
{
timer1.Stop();
progressBar1.Value = 0;
MessageBox.show("100%");
}
If you want to randomize the interval you can do this:
Random rnd = new Random();
int a = rnd.Next(1,10);
progressBar1.increment(a);
You don't need to set a new minimum or maximum unless you are changing it form the original which I doubt you are.